mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Exit if Shadowsocks-Rust ss-redir are not enabled
This commit is contained in:
parent
95a2a5fb91
commit
370d78a82a
1 changed files with 1 additions and 0 deletions
|
@ -166,6 +166,7 @@ ss_rules_nft_gen() {
|
|||
max_ss_redir_ports="0"
|
||||
config_load shadowsocks-rust
|
||||
config_foreach ss_redir_ports ss_redir $cfgrulesserver
|
||||
[ "$max_ss_redir_ports" = "0" ] && return 2
|
||||
if [ "$min_ss_redir_ports" != "$max_ss_redir_ports" ]; then
|
||||
all_ss_redir_ports=$min_ss_redir_ports-$max_ss_redir_ports
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue