1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps.git synced 2025-02-14 12:21:56 +00:00

Fix issue with Glorytun-UDP

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-03-12 19:38:43 +01:00
parent dc621e8272
commit eaf506836a
2 changed files with 8 additions and 0 deletions

View file

@ -901,6 +901,9 @@ else
echo 'Keys are not changed, shorewall rules files preserved'
echo 'You need OpenMPTCProuter >= 0.30'
echo '===================================================================================='
echo 'Restarting systemd daemon...'
systemctl -q restart daemon-reload
echo 'done'
echo 'Restarting systemd network...'
systemctl -q restart systemd-networkd
echo 'done'

View file

@ -13,7 +13,12 @@ _multipath() {
done
}
_glorytun_udp() {
[ -z "$(glorytun show dev gt-udp-tun0 2>/dev/null | grep server)" ] && systemctl -q restart glorytun-udp@*
}
while true; do
_glorytun_udp
_multipath
sleep 10
done