mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
commit
df9bbbecc0
2 changed files with 6 additions and 6 deletions
|
@ -79,10 +79,10 @@ start_instance() {
|
||||||
[ "${multiqueue}" = "1" ] && procd_append_param command multiqueue
|
[ "${multiqueue}" = "1" ] && procd_append_param command multiqueue
|
||||||
|
|
||||||
procd_append_param command \
|
procd_append_param command \
|
||||||
retry count -1 const 500000 \
|
retry count -1 const 5000000 \
|
||||||
timeout ${timeout} \
|
timeout ${timeout} \
|
||||||
keepalive count 5 idle 20 interval 2 \
|
keepalive count 5 idle 20 interval 2 \
|
||||||
buffer-size 32768
|
buffer-size 1024
|
||||||
|
|
||||||
procd_set_param respawn 0 30 0
|
procd_set_param respawn 0 30 0
|
||||||
procd_set_param file /tmp/${PROG_NAME}-${1}.key
|
procd_set_param file /tmp/${PROG_NAME}-${1}.key
|
||||||
|
|
|
@ -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