Commit 41120b0d authored by Guus der Kinderen's avatar Guus der Kinderen Committed by daryl herzmann

OF-1367: Use FQDN instead of XMPP domain name for BOSH URL. (#845)

parent a6437046
...@@ -423,15 +423,15 @@ public final class HttpBindManager implements CertificateEventListener, Property ...@@ -423,15 +423,15 @@ public final class HttpBindManager implements CertificateEventListener, Property
} }
public String getHttpBindUnsecureAddress() { public String getHttpBindUnsecureAddress() {
return "http://" + XMPPServer.getInstance().getServerInfo().getXMPPDomain() + ":" + getHttpBindUnsecurePort() + "/http-bind/"; return "http://" + XMPPServer.getInstance().getServerInfo().getHostname() + ":" + getHttpBindUnsecurePort() + "/http-bind/";
} }
public String getHttpBindSecureAddress() { public String getHttpBindSecureAddress() {
return "https://" + XMPPServer.getInstance().getServerInfo().getXMPPDomain() + ":" + getHttpBindSecurePort() + "/http-bind/"; return "https://" + XMPPServer.getInstance().getServerInfo().getHostname() + ":" + getHttpBindSecurePort() + "/http-bind/";
} }
public String getJavaScriptUrl() { public String getJavaScriptUrl() {
return "http://" + XMPPServer.getInstance().getServerInfo().getXMPPDomain() + ":" + getHttpBindUnsecurePort() + "/scripts/"; return "http://" + XMPPServer.getInstance().getServerInfo().getHostname() + ":" + getHttpBindUnsecurePort() + "/scripts/";
} }
// http binding CORS support start // http binding CORS support start
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment