From 9b13bc46d8a7fe81d1e891a1213695054d00a3a8 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sat, 13 May 2023 06:22:32 +0200 Subject: [PATCH] Also close socat in NAT mode --- run/network.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run/network.sh b/run/network.sh index 75c2d3a..7e98633 100644 --- a/run/network.sh +++ b/run/network.sh @@ -172,6 +172,8 @@ configureDNS () { # Configure Network # ###################################### +{ pkill -f server.sh || true; } 2>/dev/null + # Create the necessary file structure for /dev/net/tun if [ ! -c /dev/net/tun ]; then [ ! -d /dev/net ] && mkdir -m 755 /dev/net @@ -210,7 +212,6 @@ if [[ "${DHCP}" == [Yy1]* ]]; then configureDHCP # Display IP on port 80 and 5000 - { pkill -f server.sh || true; } 2>/dev/null /run/server.sh 5000 /run/ip.sh & else