Honor gerrit.cannonicalWebUrl when opening browser after init.
Change-Id: I69040f478394dcc4e28eec6e33729fb06690679f
This commit is contained in:
parent
3600951d0b
commit
1d12e2c7fa
@ -39,13 +39,16 @@ public class Browser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void open(final String link) throws Exception {
|
public void open(final String link) throws Exception {
|
||||||
String url = cfg.getString("httpd", null, "listenUrl");
|
String url = cfg.getString("gerrit", null, "canonicalWebUrl");
|
||||||
|
if (url == null) {
|
||||||
|
url = cfg.getString("httpd", null, "listenUrl");
|
||||||
if (url == null) {
|
if (url == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (url.startsWith("proxy-")) {
|
if (url.startsWith("proxy-")) {
|
||||||
url = url.substring("proxy-".length());
|
url = url.substring("proxy-".length());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
final URI uri;
|
final URI uri;
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user