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:
parent
dc621e8272
commit
eaf506836a
2 changed files with 8 additions and 0 deletions
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue