1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Launch omr-bypass only if not launching

This commit is contained in:
Ycarus (Yannick Chabanois) 2022-08-19 21:55:15 +02:00
parent d5bdf2f3c5
commit e162e00638
3 changed files with 4 additions and 4 deletions

View file

@ -356,7 +356,7 @@ rules_up() {
done
config_foreach ss_rules ss_rules
[ -z "$(iptables-save | grep :ssr)" ] && logger -t "Shadowsocks" "Rules not applied"
[ -f /etc/init.d/omr-bypass ] && {
[ -f /etc/init.d/omr-bypass ] && [ -z "$(pgrep -f omr-bypass)" ] && {
logger -t "Shadowsocks" "Reload omr-bypass rules"
/etc/init.d/omr-bypass reload_rules
}