Skip to content

Commit

Permalink
Update WellKnownHostMeta.java
Browse files Browse the repository at this point in the history
Allow to override the annouced port of the XMPP server, `httpbind.port.secure` (with the default `7443`), by a public view  defined by `httpbind.publicport.secure`.
  • Loading branch information
gjaekel authored Dec 14, 2020
1 parent 2dea6bd commit fac7264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pade/src/java/org/ifsoft/sso/WellKnownHostMeta.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void doGet(HttpServletRequest request, HttpServletResponse response) thro

try {
writeHeader(response);
String server = XMPPServer.getInstance().getServerInfo().getHostname() + ":" + JiveGlobals.getProperty("httpbind.port.secure", "7443");
final String server = XMPPServer.getInstance().getServerInfo().getHostname() + ":" + JiveGlobals.getProperty("httpbind.publicport.secure", JiveGlobals.getProperty("httpbind.port.secure", "7443"));
response.getOutputStream().println("<XRD xmlns=\"http://docs.oasis-open.org/ns/xri/xrd-1.0\">");
response.getOutputStream().println(" <Link rel=\"urn:xmpp:alt-connections:xbosh\" href=\"https://" + server + "/http-bind/\"/>");
response.getOutputStream().println(" <Link rel=\"urn:xmpp:alt-connections:websocket\" href=\"wss://" + server + "/ws/\"/>");
Expand Down

0 comments on commit fac7264

Please sign in to comment.