Remote boot app default port is 443

This commit is contained in:
BoykoAlex
2019-03-27 14:06:34 -04:00
parent 7684f59796
commit 043920cdca
2 changed files with 4 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;