diff --git a/server/proxy.js b/server/proxy.js index 22c63b39a..2f2b57694 100644 --- a/server/proxy.js +++ b/server/proxy.js @@ -7,7 +7,7 @@ const { UptimeKumaServer } = require("./uptime-kuma-server"); class Proxy { - static SUPPORTED_PROXY_PROTOCOLS = [ "http", "https", "socks", "socks5", "socks4" ]; + static SUPPORTED_PROXY_PROTOCOLS = [ "http", "https", "socks", "socks5", "socks5h", "socks4" ]; /** * Saves and updates given proxy entity @@ -126,6 +126,7 @@ class Proxy { break; case "socks": case "socks5": + case "socks5h": case "socks4": agent = new SocksProxyAgent({ ...httpAgentOptions, diff --git a/src/components/ProxyDialog.vue b/src/components/ProxyDialog.vue index 434c571be..74e5878b3 100644 --- a/src/components/ProxyDialog.vue +++ b/src/components/ProxyDialog.vue @@ -17,6 +17,7 @@ +