mirror of
https://github.com/Ysurac/openmptcprouter-vps.git
synced 2025-03-09 15:50:00 +00:00
Merge branch 'develop'
This commit is contained in:
commit
633bb76902
2 changed files with 7 additions and 1 deletions
|
@ -5,7 +5,7 @@ interface_name = "mlvpn0"
|
||||||
timeout = 30
|
timeout = 30
|
||||||
password = "MLVPN_PASS"
|
password = "MLVPN_PASS"
|
||||||
reorder_buffer = yes
|
reorder_buffer = yes
|
||||||
reorder_buffer_size = 64
|
reorder_buffer_size = 128
|
||||||
loss_tolerence = 50
|
loss_tolerence = 50
|
||||||
|
|
||||||
[wan1]
|
[wan1]
|
||||||
|
|
|
@ -27,6 +27,12 @@ _glorytun_tcp() {
|
||||||
for intf in /etc/glorytun-tcp/tun*; do
|
for intf in /etc/glorytun-tcp/tun*; do
|
||||||
[ "$(echo $intf | grep key)" = "" ] && /etc/glorytun-tcp/post.sh ${intf}
|
[ "$(echo $intf | grep key)" = "" ] && /etc/glorytun-tcp/post.sh ${intf}
|
||||||
done
|
done
|
||||||
|
if [ "$(cat /etc/openmptcprouter-vps-admin/current-vpn)" = "glorytun_tcp" ]; then
|
||||||
|
if [ "$(ping -c 5 -w 5 10.255.255.2 | grep '100%')" != "" ]; then
|
||||||
|
logger -t "OMR-Service" "No answer from VPN client end, restart Glorytun-TCP"
|
||||||
|
systemctl restart glorytun-tcp@tun0
|
||||||
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
_omr_api() {
|
_omr_api() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue