luci-app-shadowsocks-libev: add common flag ipv6_first 1273/head
authorYousong Zhou <yszhou4tech@gmail.com>
Tue, 1 Aug 2017 06:34:43 +0000 (14:34 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Wed, 2 Aug 2017 07:02:31 +0000 (15:02 +0800)
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua

index 4ba96b4709dc85316baed85207962545f9848378..b11890f89d8b89dca99ec227f8c2bb0ced65f0ad 100644 (file)
@@ -108,6 +108,7 @@ function options_common(s, tab)
        s:taboption(tab, Value, "user", translate("Run as"))
 
        s:taboption(tab, Flag, "verbose", translate("Verbose"))
+       s:taboption(tab, Flag, "ipv6_first", translate("IPv6 First"), translate("Prefer IPv6 addresses when resolving names"))
        s:taboption(tab, Flag, "fast_open", translate("Enable TCP Fast Open"))
        s:taboption(tab, Flag, "reuse_port", translate("Enable SO_REUSEPORT"))
 end
@@ -205,6 +206,7 @@ names_options_client = {
 
 names_options_common = {
        "verbose",
+       "ipv6_first",
        "fast_open",
        "reuse_port",
        "mode",