luci-app-ssr-plus:Maintenance Usage ssr-rules (#4016)

This commit is contained in:
Mattraks 2020-03-26 19:21:04 +08:00 committed by GitHub
parent 6d53bc90c6
commit 335ed370de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,6 +30,9 @@ Valid options are:
-p <fp_lan_ips> lan ip of will be global proxy
-G <gm_lan_ips> lan ip of will be game mode proxy
-D <proxy_ports> proxy ports
-F netflix mode
-N netflix server IP
-M netflix proxy mode
-e <extra_options> extra options for iptables
-o apply the rules to the OUTPUT chain
-O apply the global rules to the OUTPUT chain
@ -71,6 +74,8 @@ flush_r() {
ipset -X oversea 2>/dev/null
ipset -X whitelist 2>/dev/null
ipset -X blacklist 2>/dev/null
ipset -X netflix 2>/dev/null
ipset -X china 2>/dev/null
[ -n "$FWI" ] && echo '#!/bin/sh' >$FWI
return 0
}
@ -354,7 +359,7 @@ while getopts ":s:l:S:L:i:e:a:B:b:w:p:G:D:F:N:M:oOuUfgrczh" arg; do
;;
M)
NETFLIX_PROXY=$OPTARG
;;
;;
o)
OUTPUT=1
;;