Browse Source

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.
zxlhhyccc 1 year ago
parent
commit
fdf7b30d2f
1 changed files with 2 additions and 6 deletions
  1. 2 6
      luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client-config.lua

+ 2 - 6
luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client-config.lua

@@ -525,7 +525,9 @@ o.default = "3"
 o.rmempty = true
 
 o = s:option(Value, "timeout", translate("Timeout for establishing a connection to server(second)"))
+o.description = translate("Default value 0 indicatesno heartbeat.")
 o:depends("type", "tuic")
+o:depends({type = "v2ray", v2ray_protocol = "wireguard"})
 o.datatype = "uinteger"
 o.default = "8"
 o.rmempty = true
@@ -861,12 +863,6 @@ o:depends({type = "v2ray", v2ray_protocol = "wireguard"})
 o.password = true
 o.rmempty = true
 
-o = s:option(Value, "keepalive", translate("Heartbeat interval(second)"))
-o.description = translate("Default value 0 indicatesno heartbeat.")
-o:depends({type = "v2ray", v2ray_protocol = "wireguard"})
-o.default = "0"
-o.rmempty = true
-
 o = s:option(DynamicList, "allowedips", translate("allowedIPs(optional)"))
 o.description = translate("Wireguard allows only traffic from specific source IP.")
 o.datatype = "cidr"