luci-app-ssr-plus: Add WireGuard kernelMode reserved keepalive allowedips argument

*** whether to use the virtual NIC TUN of the Linux kernel!Virtual NIC TUN of Linux kernel can be used only when system supports and have root permission.
Some routes cannot be connected if they are used.

*** Current Wireguard protocol outbound Is not supported streamSettings.
This commit is contained in:
zxlhhyccc 2024-04-06 09:48:42 +08:00 committed by sbwml
parent 0ae2873bd5
commit 6a13b93a70

View File

@ -73,7 +73,7 @@ function wireguard()
publicKey = server.peer_pubkey, publicKey = server.peer_pubkey,
preSharedKey = server.preshared_key, preSharedKey = server.preshared_key,
endpoint = server.server .. ":" .. server.server_port, endpoint = server.server .. ":" .. server.server_port,
keepAlive = tonumber(server.keepalive), keepAlive = tonumber(server.heartbeat),
allowedIPs = (server.allowedips) or nil, allowedIPs = (server.allowedips) or nil,
} }
}, },