mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-12 10:57:51 +08:00
update 2026-06-09 22:38:17
This commit is contained in:
1 parent
9e84ab4d95
commit
33430d9b88
4 files changed
+17
-22
No files matched your search
@@ -583,8 +583,9 @@ function gen_outbound(flag, node, tag, proxy_table)
|
||||
result.server_port = nil
|
||||
local realm = api.parse_realm_uri(node.hysteria2_realm_url)
|
||||
if realm then
|
||||
realm.server_url = realm.server_url and "https://" .. realm.server_url or nil
|
||||
realm.server_url = (realm.scheme == "realm+http" and "http://" or "https://") .. realm.server_url
|
||||
realm.stun_servers = realm.stun_servers or node.hysteria2_realm_stun
|
||||
realm.scheme = nil
|
||||
return realm
|
||||
end
|
||||
return nil
|
||||
@@ -929,8 +930,9 @@ function gen_config_server(node)
|
||||
realm = node.hysteria2_realms and (function()
|
||||
local realm = api.parse_realm_uri(node.hysteria2_realm_url)
|
||||
if realm then
|
||||
realm.server_url = realm.server_url and "https://" .. realm.server_url or nil
|
||||
realm.server_url = (realm.scheme == "realm+http" and "http://" or "https://") .. realm.server_url
|
||||
realm.stun_servers = realm.stun_servers or node.hysteria2_realm_stun
|
||||
realm.scheme = nil
|
||||
realm.stun_domain_resolver = "direct"
|
||||
return realm
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user