We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac45746 commit 4344a8aCopy full SHA for 4344a8a
src/scripts/UrlParams.js
@@ -39,7 +39,8 @@ function UrlParams (game) {
39
}
40
if (game.proxy.port === '' || game.proxy.port === null) {
41
reload = true
42
- game.proxy.port = game.production ? '80' : 'local'
+
43
+ game.proxy.port = game.production ? (document.location.protocol === 'https:' ? '443' : '80') : 'local'
44
45
if (reload) {
46
document.location.href = `?server=${game.server}&port=${game.serverPort}&nick=${game.nick}&premium=${game.premium}&proxyHost=${game.proxy.hostname}&proxyPort=${game.proxy.port}`
0 commit comments