1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps.git synced 2025-03-09 15:50:00 +00:00

Fix dsvpn restart in omr-service, add VLESS-REALITY support

This commit is contained in:
Ycarus (Yannick Chabanois) 2023-10-26 14:29:51 +00:00
parent 0d9a766d28
commit c0af37c0c2
3 changed files with 24 additions and 9 deletions

View file

@ -60,7 +60,7 @@ _dsvpn() {
remoteip="$(echo $localip | sed 's/\.1/\.2/')"
if [ "$(ping -c 5 -w 5 $remoteip | grep '100%')" != "" ] && [ "$(expr $(date +%s) - $(stat -c %Y /proc/$(pgrep dsvpn)/exe ))" -gt "300" ]; then
logger -t "OMR-Service" "No answer from VPN client end, restart DSVPN"
systemctl restart dsvpn@dsvpn0
systemctl restart dsvpn-server@dsvpn0
fi
#ip link set mtu 9000 dev dsvpn0 2>&1 >/dev/null
fi