mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Merge branch 'develop' into master
This commit is contained in:
commit
bce430e259
3 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@ config mlvpn 'general'
|
|||
option enable '0'
|
||||
option password ''
|
||||
option timeout '30'
|
||||
option reorder_buffer_size '64'
|
||||
option reorder_buffer_size '128'
|
||||
option loss_tolerence '50'
|
||||
option mode 'client'
|
||||
option host '128.128.128.128'
|
||||
|
|
|
@ -52,9 +52,9 @@ start() {
|
|||
mode = "${mode}"
|
||||
interface_name = "${interface_name}"
|
||||
timeout = ${timeout}
|
||||
#reorder_buffer = yes
|
||||
reorder_buffer = yes
|
||||
reorder_buffer_size = ${reorder_buffer_size}
|
||||
#loss_tolerence = ${loss_tolerence}
|
||||
loss_tolerence = ${loss_tolerence}
|
||||
password = "${password}"
|
||||
mtu = 1452
|
||||
EOF
|
||||
|
|
|
@ -535,7 +535,7 @@ if [ "$multipath_config" = "master" ]; then
|
|||
}
|
||||
fi
|
||||
fi
|
||||
if [ -n "$OMR_TRACKER_DEVICE_GATEWAY" ] && [ -n "$OMR_TRACKER_DEVICE" ] && [ "$(ip r show table 991337)" != "default via $OMR_TRACKER_DEVICE_GATEWAY dev $OMR_TRACKER_DEVICE" ]; then
|
||||
if [ -n "$OMR_TRACKER_DEVICE_GATEWAY" ] && [ -n "$OMR_TRACKER_DEVICE" ] && [ "$(ip r show table 991337)" != "default via $OMR_TRACKER_DEVICE_GATEWAY dev $OMR_TRACKER_DEVICE " ]; then
|
||||
ip route replace default via $OMR_TRACKER_DEVICE_GATEWAY dev $OMR_TRACKER_DEVICE table 991337
|
||||
fi
|
||||
if [ "$(uci -q get openmptcprouter.$OMR_TRACKER_INTERFACE.lc)" = "" ] || [ $(($(date +"%s") + $((10 + RANDOM % 31)) - $(uci -q get openmptcprouter.$OMR_TRACKER_INTERFACE.lc))) -gt 3600 ] || [ "$(uci -q show openmptcprouter | grep get_config=\'1\')" != "" ] || [ "$(uci -q show openmptcprouter | grep admin_error=\'1\')" != "" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue