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
2df3477cbc
2 changed files with 8 additions and 0 deletions
|
@ -901,6 +901,9 @@ else
|
||||||
echo 'Keys are not changed, shorewall rules files preserved'
|
echo 'Keys are not changed, shorewall rules files preserved'
|
||||||
echo 'You need OpenMPTCProuter >= 0.30'
|
echo 'You need OpenMPTCProuter >= 0.30'
|
||||||
echo '===================================================================================='
|
echo '===================================================================================='
|
||||||
|
echo 'Restarting systemd daemon...'
|
||||||
|
systemctl -q restart daemon-reload
|
||||||
|
echo 'done'
|
||||||
echo 'Restarting systemd network...'
|
echo 'Restarting systemd network...'
|
||||||
systemctl -q restart systemd-networkd
|
systemctl -q restart systemd-networkd
|
||||||
echo 'done'
|
echo 'done'
|
||||||
|
|
|
@ -13,7 +13,12 @@ _multipath() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_glorytun_udp() {
|
||||||
|
[ -z "$(glorytun show dev gt-udp-tun0 2>/dev/null | grep server)" ] && systemctl -q restart glorytun-udp@*
|
||||||
|
}
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
|
_glorytun_udp
|
||||||
_multipath
|
_multipath
|
||||||
sleep 10
|
sleep 10
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue