From eaf506836abf8d66ef25154c077884fa91d554d3 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Thu, 12 Mar 2020 19:38:43 +0100 Subject: [PATCH] Fix issue with Glorytun-UDP --- debian9-x86_64.sh | 3 +++ omr-service | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/debian9-x86_64.sh b/debian9-x86_64.sh index 02702c3..f7a134c 100644 --- a/debian9-x86_64.sh +++ b/debian9-x86_64.sh @@ -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' diff --git a/omr-service b/omr-service index c439d32..90d7550 100755 --- a/omr-service +++ b/omr-service @@ -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