mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-01 05:03:56 +08:00
🍕 Sync 2026-08-28 16:44:23
This commit is contained in:
1 parent
7630ce970c
commit
6490d09e15
22 files changed
+113
-31
No files matched your search
@@ -15,7 +15,7 @@ local xray_version = api.get_app_version("xray")
|
||||
local xray_min_version = "26.3.27"
|
||||
|
||||
local function get_domain_excluded()
|
||||
local path = "/usr/share/passwall/domains_excluded"
|
||||
local path = string.format("/usr/share/%s/rules/domains_excluded", api.c_config)
|
||||
local content = fs.readfile(path)
|
||||
if not content then return nil end
|
||||
local hosts = {}
|
||||
@@ -308,7 +308,8 @@ function gen_outbound(flag, node, tag, proxy_table)
|
||||
type = "realm",
|
||||
settings = {
|
||||
url = url,
|
||||
stunServers = stun
|
||||
stunServers = stun,
|
||||
portMapping = (node.hysteria2_realm_upnp == "1") and { enabled = true } or nil
|
||||
}
|
||||
}
|
||||
udp[#udp+1] = r
|
||||
@@ -782,7 +783,8 @@ function gen_config_server(node)
|
||||
type = "realm",
|
||||
settings = {
|
||||
url = url,
|
||||
stunServers = stun
|
||||
stunServers = stun,
|
||||
portMapping = (node.hysteria2_realm_upnp == "1") and { enabled = true } or nil
|
||||
}
|
||||
}
|
||||
udp[#udp+1] = r
|
||||
|
||||
Reference in new issue
Block a user