mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix and more info for omr-tracker
This commit is contained in:
parent
9e84fb41d5
commit
309bc80c98
2 changed files with 17 additions and 9 deletions
|
@ -115,7 +115,7 @@ default_gw=$(ip route show default | grep -v metric | awk '/default/ {print $3}'
|
|||
if [ "$OMR_TRACKER_STATUS" = "ERROR" ]; then
|
||||
if [ -d "/sys/class/net/$OMR_TRACKER_DEVICE" ]; then
|
||||
[ "$multipath_status" = "off" ] || {
|
||||
_log "$OMR_TRACKER_DEVICE switched off"
|
||||
_log "$OMR_TRACKER_DEVICE switched off because $OMR_TRACKER_STATUS_MSG"
|
||||
if [ "$(sysctl -n net.mptcp.mptcp_enabled | tr -d '\n')" = "1" ]; then
|
||||
multipath "$OMR_TRACKER_DEVICE" off
|
||||
fi
|
||||
|
@ -136,7 +136,7 @@ if [ "$OMR_TRACKER_STATUS" = "ERROR" ]; then
|
|||
config_foreach set_route interface $OMR_TRACKER_INTERFACE
|
||||
fi
|
||||
if [ "$OMR_TRACKER_INTERFACE" = "glorytun" ] || [ "$OMR_TRACKER_INTERFACE" = "omrvpn" ]; then
|
||||
_log "$OMR_TRACKER_INTERFACE down"
|
||||
_log "$OMR_TRACKER_INTERFACE down because $OMR_TRACKER_STATUS_MSG"
|
||||
#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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue