1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2024-05-07 11:19:32 +02:00
parent 95a2a5fb91
commit 370d78a82a

View file

@ -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