Remote boot app default port is 443
This commit is contained in:
@@ -22,7 +22,7 @@ public class RemoteSpringBootApp extends AbstractSpringBootApp {
|
||||
|
||||
private String jmxUrl;
|
||||
private String host = null;
|
||||
private String port = "80";
|
||||
private String port = "443";
|
||||
|
||||
protected RemoteSpringBootApp(String jmxUrl, String host) {
|
||||
this.jmxUrl = jmxUrl;
|
||||
|
||||
@@ -44,8 +44,10 @@ public class UrlUtil {
|
||||
}
|
||||
path = contextPath + path;
|
||||
}
|
||||
if (port.equals("80")) {
|
||||
if ("80".equals(port)) {
|
||||
return "http://"+host+path;
|
||||
} else if ("443".equals(port)) {
|
||||
return "https://"+host+path;
|
||||
} else {
|
||||
if (LOCALHOST_ALIASES.contains(host)) {
|
||||
return "http://" + host + ":" + port + path;
|
||||
|
||||
Reference in New Issue
Block a user