Skip to content

Commit

Permalink
Doesn't run rules_up if proxy disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Jan 17, 2024
1 parent fef367a commit cc07292
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion shadowsocks-libev/files/firewall.ss-rules
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
/etc/init.d/shadowsocks-libev rules_up
[ "$(uci -q get shadowsocks-libev.sss0.disabled)" != "1" ] && /etc/init.d/shadowsocks-libev rules_up
2 changes: 1 addition & 1 deletion shadowsocks-rust/files/firewall.ssr-rules
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
/etc/init.d/shadowsocks-rust rules_up
[ "$(uci -q get shadowsocks-rust.sss0.disabled)" != "1" ] && /etc/init.d/shadowsocks-rust rules_up
2 changes: 1 addition & 1 deletion v2ray-core/files/etc/firewall.v2ray-rules
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
/etc/init.d/v2ray rules_up
[ "$(uci -q get v2ray.main_dns.enabled)" = "1" ] && /etc/init.d/v2ray rules_up
2 changes: 1 addition & 1 deletion xray-core/files/etc/firewall.xray-rules
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
/etc/init.d/xray rules_up
[ "$(uci -q get xray.main_dns.enabled)" = "1"] && /etc/init.d/xray rules_up

0 comments on commit cc07292

Please sign in to comment.