luci-app-shadowsocks-libev: ss_rules: allow ip6 in src_dst_option()
authorYousong Zhou <yszhou4tech@gmail.com>
Mon, 21 Jan 2019 02:00:06 +0000 (02:00 +0000)
committerYousong Zhou <yszhou4tech@gmail.com>
Mon, 21 Jan 2019 07:20:02 +0000 (07:20 +0000)
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/rules.lua

index 553b297ac0d5aa280f81248438aed03485c6abff..e4d1a2745e392a6e17fdbfdfea9a0b33a9a7462c 100644 (file)
@@ -24,7 +24,7 @@ end
 
 function src_dst_option(s, ...)
        local o = s:taboption(...)
-       o.datatype = "or(ip4addr,cidr4)"
+       o.datatype = "or(ipaddr,cidr)"
 end
 
 s = m:section(NamedSection, "ss_rules", "ss_rules")