mirror of
https://github.com/jerrykuku/luci-app-vssr.git
synced 2023-12-18 13:29:53 +08:00
parent
5fee1bb9c6
commit
2ac96bf615
@ -110,10 +110,10 @@ o:value('all', translate('Global Mode'))
|
||||
o:value('oversea', translate('Oversea Mode'))
|
||||
o:value('direct', translate('Direct Mode'))
|
||||
o.default = 'router'
|
||||
o = s:option(ListValue, 'dports', translate('Proxy Ports'))
|
||||
o:value('1', translate('All Ports'))
|
||||
o:value('2', translate('Only Common Ports'))
|
||||
o.default = 1
|
||||
|
||||
o = s:option(Value, 'dports', translate('Proxy Ports'))
|
||||
o.default=''
|
||||
o.description = translate('If you do not specify all ports, separate multiple ports with commas (,)')
|
||||
|
||||
o = s:option(ListValue, 'pdnsd_enable', translate('Resolve Dns Mode'))
|
||||
o:value('1', translate('Use Pdnsd tcp query and cache'))
|
||||
|
@ -731,3 +731,6 @@ msgstr "【国内IP段】来源地址"
|
||||
|
||||
msgid "China ip data url. You are not recommended to change the value"
|
||||
msgstr "中国大陆IP数据列表地址,除非明白原理否则不建议修改!"
|
||||
|
||||
msgid "If you do not specify all ports, separate multiple ports with commas (,)"
|
||||
msgstr "留空则代理全部端口,如果自定义、多个端口请用半角符逗号隔开。"
|
||||
|
@ -11,7 +11,7 @@ config global
|
||||
option switch_time '667'
|
||||
option switch_try_count '3'
|
||||
option adblock '0'
|
||||
option dports '1'
|
||||
option dports '80,443,22,53,587,465,995,993,143,9418'
|
||||
|
||||
config socks5_proxy
|
||||
option enable_server '0'
|
||||
|
@ -244,11 +244,11 @@ start_rules() {
|
||||
direct) gfwmode="-d" ;;
|
||||
esac
|
||||
|
||||
local dports=$(uci_get_by_type global dports 1)
|
||||
if [ $dports = "1" ]; then
|
||||
local dports=$(uci_get_by_type global dports)
|
||||
if [[ -z $dports ]]; then
|
||||
proxyport=" "
|
||||
else
|
||||
proxyport="-m multiport --dports 22,53,587,465,995,993,143,80,443,9418"
|
||||
proxyport="-m multiport --dports $dports"
|
||||
fi
|
||||
|
||||
$VSSR_RULES_BIN \
|
||||
|
Loading…
Reference in New Issue
Block a user