This commit is contained in:
darkclip committed 2024-01-12 05:01:37 +08:00
1 parent baace07660
commit cb465bcf74
1 file changed
+1 -1
+1 -1
View File
@@ -241,7 +241,7 @@ main(){
;; ;;
*) *)
if [ $HOST ]; then if [ $HOST ]; then
curl -kX POST "https://$HOST/api/wireguard/client/setClient/$UUID" \ curl -ksSfX POST "https://$HOST/api/wireguard/client/setClient/$UUID" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Basic $BASIC" \ -H "Authorization: Basic $BASIC" \
-d '{"client":{"serveraddress":"'$serveraddress'","serverport":"'$serverport'","servers":"'$SERVER'"}}'; -d '{"client":{"serveraddress":"'$serveraddress'","serverport":"'$serverport'","servers":"'$SERVER'"}}';