From b3dde11e0719436517938b8f8e5be3f863cca05d Mon Sep 17 00:00:00 2001 From: darkclip Date: Sat, 27 Jan 2024 06:19:26 +0800 Subject: [PATCH] update --- wg-watch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wg-watch.sh b/wg-watch.sh index 1160fc86..b6caeeb3 100755 --- a/wg-watch.sh +++ b/wg-watch.sh @@ -253,7 +253,7 @@ main(){ *) if [ $CONFIG ] && [ $(grep -i "Endpoint" $CONFIG|awk '{print $3}') != $endpoint ]; then echo "set config"; - sed -i -r 's/Endpoint.*/Endpoint = '$endpoint'/i' $CONFIG; + sed -i -r s/Endpoint.*/Endpoint = $endpoint/i $CONFIG; fi; if [ $HOST ]; then json=$(curl -ksSf "https://$HOST/api/wireguard/client/getClient/$UUID" -H "Authorization: Basic $BASIC") 2>&1;