Web relay with DNS now uses the main HTTPS alias port when set, #4210.
Ylian Saint-Hilaire committed
Jul 5, 2022 at 13:21 UTC
568097597c240a301a53506be8626245e395aa01
1 file changed
+1
-1
webserver.js
+1
-1
@@ -2864,7 +2864,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
2864
webstate: encodeURIComponent(webstate).replace(/'/g, '%27'),
2865
amtscanoptions: amtscanoptions,
2866
pluginHandler: (parent.pluginHandler == null) ? 'null' : parent.pluginHandler.prepExports(),
2867
- webRelayPort: ((typeof args.relaydns == 'string') ? args.port : ((parent.webrelayserver != null) ? ((typeof args.relayaliasport == 'number') ? args.relayaliasport : parent.webrelayserver.port) : 0)),
2867
+ webRelayPort: ((typeof args.relaydns == 'string') ? ((typeof args.aliasport == 'number') ? args.aliasport : args.port) : ((parent.webrelayserver != null) ? ((typeof args.relayaliasport == 'number') ? args.relayaliasport : parent.webrelayserver.port) : 0)),
2868
webRelayDns: ((typeof args.relaydns == 'string') ? args.relaydns : '')
2869
}, dbGetFunc.req, domain), user);
2870
}