mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Enable MTU calculation again on Glorytun
This commit is contained in:
parent
5ca7fd25b0
commit
42514609b5
1 changed files with 4 additions and 4 deletions
|
@ -1008,7 +1008,7 @@ if [ "$OMR_TRACKER_INTERFACE" = "glorytun" ] || [ "$OMR_TRACKER_INTERFACE" = "om
|
||||||
fi
|
fi
|
||||||
uci -q set openmptcprouter.$OMR_TRACKER_INTERFACE="interface"
|
uci -q set openmptcprouter.$OMR_TRACKER_INTERFACE="interface"
|
||||||
uci -q set openmptcprouter.$OMR_TRACKER_INTERFACE.latency="$OMR_TRACKER_LATENCY"
|
uci -q set openmptcprouter.$OMR_TRACKER_INTERFACE.latency="$OMR_TRACKER_LATENCY"
|
||||||
if [ "$(uci -q get glorytun.vpn.enable)" != "1" ] || [ "$(uci -q get glorytun-udp.vpn.enable)" != "1" ]; then
|
#if [ "$(uci -q get glorytun.vpn.enable)" != "1" ] || [ "$(uci -q get glorytun-udp.vpn.enable)" != "1" ]; then
|
||||||
OMR_NETWORK_DEVICE=$(find_network_device ${OMR_TRACKER_INTERFACE})
|
OMR_NETWORK_DEVICE=$(find_network_device ${OMR_TRACKER_INTERFACE})
|
||||||
if [ -n "$OMR_NETWORK_DEVICE" ] && [ -n "$(uci -q get network.$OMR_NETWORK_DEVICE.mtu)" ] && [ -n "$OMR_TRACKER_DEVICE" ]; then
|
if [ -n "$OMR_NETWORK_DEVICE" ] && [ -n "$(uci -q get network.$OMR_NETWORK_DEVICE.mtu)" ] && [ -n "$OMR_TRACKER_DEVICE" ]; then
|
||||||
mtu=$(uci -q get network.$OMR_NETWORK_DEVICE.mtu)
|
mtu=$(uci -q get network.$OMR_NETWORK_DEVICE.mtu)
|
||||||
|
@ -1035,9 +1035,9 @@ if [ "$OMR_TRACKER_INTERFACE" = "glorytun" ] || [ "$OMR_TRACKER_INTERFACE" = "om
|
||||||
else
|
else
|
||||||
uci -q set openmptcprouter.$OMR_TRACKER_INTERFACE.lc=$(date +"%s")
|
uci -q set openmptcprouter.$OMR_TRACKER_INTERFACE.lc=$(date +"%s")
|
||||||
fi
|
fi
|
||||||
else
|
#else
|
||||||
uci -q set openmptcprouter.$OMR_TRACKER_INTERFACE.lc=$(date +"%s")
|
# uci -q set openmptcprouter.$OMR_TRACKER_INTERFACE.lc=$(date +"%s")
|
||||||
fi
|
#fi
|
||||||
[ -n "$(uci -q changes openmptcprouter)" ] && uci -q commit openmptcprouter
|
[ -n "$(uci -q changes openmptcprouter)" ] && uci -q commit openmptcprouter
|
||||||
fi
|
fi
|
||||||
nbserver=0
|
nbserver=0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue