mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix tracker
This commit is contained in:
parent
c32da33c53
commit
76b78ae2e7
2 changed files with 3 additions and 1 deletions
|
@ -33,7 +33,7 @@ global_multipath_settings() {
|
|||
}
|
||||
|
||||
interface_multipath_settings() {
|
||||
local mode iface
|
||||
local mode iface proto
|
||||
local config="$1"
|
||||
local intf="$2"
|
||||
local enabled
|
||||
|
|
|
@ -112,6 +112,8 @@ 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
|
||||
config_load shadowsocks-libev
|
||||
config_foreach del_ss_route server
|
||||
if [ "$(uci -q show shadowsocks-libev.ss_rules.redir_udp)" = "" ] && [ "$(uci -q show shadowsocks-libev.hi2.mode)" = "tcp_and_udp" ]; then
|
||||
uci -q set shadowsocks-libev.ss_rules.redir_udp='hi2'
|
||||
/etc/init.d/shadowsocks-libev rules_down
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue