aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--etherpad/src/etherpad/utils.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/etherpad/src/etherpad/utils.js b/etherpad/src/etherpad/utils.js
index 398090c..3e35f00 100644
--- a/etherpad/src/etherpad/utils.js
+++ b/etherpad/src/etherpad/utils.js
@@ -388,7 +388,7 @@ function isStaticRequest() {
function httpsHost(h) {
h = h.split(":")[0]; // strip any existing port
- if (appjet.config.listenSecurePort != "443") {
+ if (appjet.config.listenSecurePort != "443" && !appjet.config.hidePorts) {
h = (h + ":" + appjet.config.listenSecurePort);
}
return h;
@@ -396,7 +396,7 @@ function httpsHost(h) {
function httpHost(h) {
h = h.split(":")[0]; // strip any existing port
- if (appjet.config.listenPort != "80") {
+ if (appjet.config.listenPort != "80" && !appjet.config.hidePorts) {
h = (h + ":" + appjet.config.listenPort);
}
return h;