mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-16 21:43:33 +08:00
✨ Sync 2026-11-11 01:22:09
This commit is contained in:
1 parent
9c5aa2e662
commit
cc21462d8a
48 files changed
+9760
-59
No files matched your search
@@ -523,6 +523,7 @@ function gen_outbound(flag, node, tag, proxy_table)
|
||||
pre_shared_key = node.wireguard_preSharedKey,
|
||||
reserved = node.wireguard_reserved,
|
||||
mtu = tonumber(node.wireguard_mtu),
|
||||
persistent_keepalive_interval = tonumber(node.wireguard_keepAlive),
|
||||
}
|
||||
end
|
||||
|
||||
@@ -2399,7 +2400,8 @@ function gen_config(var)
|
||||
port = value.server_port,
|
||||
public_key = value.peer_public_key,
|
||||
pre_shared_key = value.pre_shared_key,
|
||||
allowed_ips = {"0.0.0.0/0"},
|
||||
allowed_ips = {"0.0.0.0/0", "::/0"},
|
||||
persistent_keepalive_interval = value.persistent_keepalive_interval,
|
||||
reserved = value.reserved
|
||||
}
|
||||
},
|
||||
|
||||
@@ -445,7 +445,7 @@ function gen_outbound(flag, node, tag, proxy_table)
|
||||
peers = (node.protocol == "wireguard") and {
|
||||
{
|
||||
publicKey = node.wireguard_public_key,
|
||||
endpoint = node.address .. ":" .. node.port,
|
||||
endpoint = (api.is_ipv6(node.address) and ("[" .. node.address .. "]") or node.address) .. ":" .. node.port,
|
||||
preSharedKey = node.wireguard_preSharedKey,
|
||||
keepAlive = node.wireguard_keepAlive and tonumber(node.wireguard_keepAlive) or nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user