1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 18:41:51 +00:00

Small changes for glorytun speed

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-10-03 09:36:31 +02:00
parent fc7a2fa4e5
commit 5a6ef8ca2a

View file

@ -425,9 +425,9 @@ fi
upload="$(uci -q get network.$OMR_TRACKER_INTERFACE.uploadspeed)"
[ -z "$upload" ] && upload="$(uci -q get sqm.$OMR_TRACKER_INTERFACE.upload)"
if [ "$download" != "0" ] && [ "$download" != "" ] && [ "$upload" != "0" ] && [ "$upload" != "" ]; then
glorytun-udp path up $OMR_TRACKER_DEVICE_IP dev tun0 rate tx ${upload}000 rx ${download}000 > /dev/null 2>&1
glorytun-udp path $OMR_TRACKER_DEVICE_IP dev tun0 up rate tx ${upload}000 rx ${download}000 > /dev/null 2>&1
else
glorytun-udp path $OMR_TRACKER_DEVICE_IP dev tun0 up rate rx 125000000 tx 125000000 > /dev/null 2>&1
glorytun-udp path $OMR_TRACKER_DEVICE_IP dev tun0 up rate tx 125000000 rx 125000000 > /dev/null 2>&1
fi
}
[ "$multipath_config" = "backup" ] && glorytun-udp path $OMR_TRACKER_DEVICE_IP dev tun0 backup rate rx 125000000 tx 125000000 > /dev/null 2>&1