Skip to content

Commit 4344a8a

Browse files
committed
fix ssl
1 parent ac45746 commit 4344a8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/scripts/UrlParams.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ function UrlParams (game) {
3939
}
4040
if (game.proxy.port === '' || game.proxy.port === null) {
4141
reload = true
42-
game.proxy.port = game.production ? '80' : 'local'
42+
43+
game.proxy.port = game.production ? (document.location.protocol === 'https:' ? '443' : '80') : 'local'
4344
}
4445
if (reload) {
4546
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

Comments
 (0)