diff --git a/proxy/proxy.py b/proxy/proxy.py index e6bf383..50da319 100644 --- a/proxy/proxy.py +++ b/proxy/proxy.py @@ -37,7 +37,7 @@ class MlgmXyysd_Anime_Game_Proxy: loader.add_option( name = "port", typespec = int, - default = 80, + default = 443, help = "Port to replace", ) diff --git a/resources/js/index.js b/resources/js/index.js index 3070a54..0a4e2ce 100644 --- a/resources/js/index.js +++ b/resources/js/index.js @@ -172,7 +172,7 @@ async function setBackgroundImage() { */ async function handleFavoriteInput() { const ip = document.querySelector('#ip').value - const port = document.querySelector('#port').value + const port = document.querySelector('#port').value || '443' const ipArr = await getFavIps() const addr = `${ip}:${port}` diff --git a/resources/js/options.js b/resources/js/options.js index 1b74f53..58da7f6 100644 --- a/resources/js/options.js +++ b/resources/js/options.js @@ -88,7 +88,7 @@ async function handleLanguageChange(elm) { */ async function setFavorite() { const ip = document.querySelector('#ip').value - const port = document.querySelector('#port').value + const port = document.querySelector('#port').value || '443' const ipArr = await getFavIps() const addr = `${ip}:${port}`