mirror of
https://github.com/darkclip/netlist.git
synced 2026-12-07 07:22:35 +08:00
update
This commit is contained in:
1 parent
44da1ea77d
commit
b3dde11e07
1 file changed
+1
-1
+1
-1
@@ -253,7 +253,7 @@ main(){
|
|||||||
*)
|
*)
|
||||||
if [ $CONFIG ] && [ $(grep -i "Endpoint" $CONFIG|awk '{print $3}') != $endpoint ]; then
|
if [ $CONFIG ] && [ $(grep -i "Endpoint" $CONFIG|awk '{print $3}') != $endpoint ]; then
|
||||||
echo "set config";
|
echo "set config";
|
||||||
sed -i -r 's/Endpoint.*/Endpoint = '$endpoint'/i' $CONFIG;
|
sed -i -r s/Endpoint.*/Endpoint = $endpoint/i $CONFIG;
|
||||||
fi;
|
fi;
|
||||||
if [ $HOST ]; then
|
if [ $HOST ]; then
|
||||||
json=$(curl -ksSf "https://$HOST/api/wireguard/client/getClient/$UUID" -H "Authorization: Basic $BASIC") 2>&1;
|
json=$(curl -ksSf "https://$HOST/api/wireguard/client/getClient/$UUID" -H "Authorization: Basic $BASIC") 2>&1;
|
||||||
|
|||||||
Reference in new issue
Block a user