curl -X PUT "http://127.0.0.1:22999/api/wip" -H "Authorization: TOKEN" -H "Content-Type: application/json" -d '{"ip":"1.2.1.2"}'
Successful response

API 端点: PUT /api/wip

Authorization
string
required

API 令牌

应通过“生成令牌 API”命令生成令牌

Generate token API

PUT body

ip
string
required

要列入白名单的 IP。例如,ip="1.2.1.2"

curl -X PUT "http://127.0.0.1:22999/api/wip" -H "Authorization: TOKEN" -H "Content-Type: application/json" -d '{"ip":"1.2.1.2"}'
Successful response