This commit is contained in:
darkclip committed 2024-01-27 06:19:26 +08:00
1 parent 44da1ea77d
commit b3dde11e07
1 file changed
+1 -1
+1 -1
View File
@@ -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;