1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 11:01:50 +00:00

Fix VPN down action

This commit is contained in:
Ycarus 2018-08-14 11:06:59 +02:00
parent 309bc80c98
commit cebb8eb9d7

View file

@ -137,6 +137,8 @@ if [ "$OMR_TRACKER_STATUS" = "ERROR" ]; then
fi
if [ "$OMR_TRACKER_INTERFACE" = "glorytun" ] || [ "$OMR_TRACKER_INTERFACE" = "omrvpn" ]; then
_log "$OMR_TRACKER_INTERFACE down because $OMR_TRACKER_STATUS_MSG"
config_load network
config_foreach set_route interface $OMR_TRACKER_INTERFACE
#config_load shadowsocks-libev
#config_foreach del_ss_route server all
if [ "$(uci -q show shadowsocks-libev.ss_rules.redir_udp)" = "" ] && [ "$(uci -q show shadowsocks-libev.hi2.mode)" = "tcp_and_udp" ]; then