From 8842fc39c1201f80aecab65162809013f38e9656 Mon Sep 17 00:00:00 2001 From: darkclip Date: Fri, 5 Jan 2024 20:45:28 +0800 Subject: [PATCH] update --- wg-watch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wg-watch.sh b/wg-watch.sh index fc7832dd..416de363 100755 --- a/wg-watch.sh +++ b/wg-watch.sh @@ -238,8 +238,8 @@ main(){ fi; ;; *) - if [ $(grep "Endpoint" $CONFIG|awk '{print $3}') != $endpoint ]; then - sed -i -r 's/Endpoint.*/Endpoint = '$endpoint'/' $CONFIG; + if [ $(grep -i "Endpoint" $CONFIG|awk '{print $3}') != $endpoint ]; then + sed -i -r 's/Endpoint.*/Endpoint = '$endpoint'/i' $CONFIG; fi; ;; esac;