1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2020-10-31 11:52:49 +00:00
commit 633bb76902
2 changed files with 7 additions and 1 deletions

View file

@ -5,7 +5,7 @@ interface_name = "mlvpn0"
timeout = 30
password = "MLVPN_PASS"
reorder_buffer = yes
reorder_buffer_size = 64
reorder_buffer_size = 128
loss_tolerence = 50
[wan1]

View file

@ -27,6 +27,12 @@ _glorytun_tcp() {
for intf in /etc/glorytun-tcp/tun*; do
[ "$(echo $intf | grep key)" = "" ] && /etc/glorytun-tcp/post.sh ${intf}
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() {