diff --git a/luci-app-passwall/luasrc/model/cbi/passwall/client/type/sing-box.lua b/luci-app-passwall/luasrc/model/cbi/passwall/client/type/sing-box.lua index d6186976f..473397cb1 100644 --- a/luci-app-passwall/luasrc/model/cbi/passwall/client/type/sing-box.lua +++ b/luci-app-passwall/luasrc/model/cbi/passwall/client/type/sing-box.lua @@ -615,12 +615,12 @@ o:value("v2ray-plugin") o = s:option(Value, option_name("plugin_opts"), translate("opts")) o:depends({ [option_name("plugin_enabled")] = true }) -o = s:option(ListValue, option_name("domain_strategy"), "Domain Strategy", translate("If is domain name, The requested domain name will be resolved to IP before connect.")) +o = s:option(ListValue, option_name("domain_strategy"), translate("Domain Strategy"), translate("If is domain name, The requested domain name will be resolved to IP before connect.")) o.default = "prefer_ipv6" -o:value("prefer_ipv4") -o:value("prefer_ipv6") -o:value("ipv4_only") -o:value("ipv6_only") +o:value("prefer_ipv4", translate("Prefer IPv4")) +o:value("prefer_ipv6", translate("Prefer IPv6")) +o:value("ipv4_only", translate("IPv4 Only")) +o:value("ipv6_only", translate("IPv6 Only")) o = s:option(ListValue, option_name("to_node"), translate("Landing node"), translate("Only support a layer of proxy.")) o.default = "" diff --git a/luci-app-passwall/po/zh-cn/passwall.po b/luci-app-passwall/po/zh-cn/passwall.po index 69f99ed12..4bffef374 100644 --- a/luci-app-passwall/po/zh-cn/passwall.po +++ b/luci-app-passwall/po/zh-cn/passwall.po @@ -448,6 +448,18 @@ msgstr "IPIfNonMatch:当域名没有匹配任何规则时,将域名解析成 msgid "'IPOnDemand': As long as there is a IP-based rule, resolves the domain into IP immediately." msgstr "IPOnDemand:当匹配时碰到任何基于 IP 的规则,将域名立即解析为 IP 进行匹配。" +msgid "Prefer IPv4" +msgstr "IPv4 优先" + +msgid "Prefer IPv6" +msgstr "IPv6 优先" + +msgid "IPv4 Only" +msgstr "仅 IPv4" + +msgid "IPv6 Only" +msgstr "仅 IPv6" + msgid "Load balancing node list" msgstr "负载均衡节点列表"