对自定义代理进行修改。代理信息填写格式如下:
IPv4 类型可用 “主机:端口” 或 “主机:端口:账号:密码” 或 “账号:密码@主机:端口”;
IPv6 类型暂不支持;
代理账密仅支持: 大小写字母、数字、!@#$%^&*();.,/~+-_?<>[]=|{}
填写示例:
192.168.0.1:8000
socks5://192.168.0.1:8000
http://192.168.0.1:8000
代理账号:代理密码@192.168.0.1:8000
POST /api/v1/proxy/update
| 参数 | 类型 | 必需 | 说明 |
|---|---|---|---|
| id | string | 是 | 代理ID,可通过代理列表获取 |
| host | string | 否 | host,暂不支持 IPv6 类型 |
| port | int | 否 | 端口 |
| user | string | 否 | 账号 |
| password | string | 否 | 密码 |
| name | string | 否 | 名称 |
| ip_scan_channel | string | 否 | 代理检测渠道,支持:ip2location,ipapi,未传时默认为 ip2location |
| protocol | string | 否 | 代理类型,支持 socks5,http,https,未传时默认为 socks5 |
| refresh_url | string | 否 | 刷新 URL |
| proxy_url | string | 否 | 代理信息 |
{
"id": "xx",
"name": "xx",
"host": "xx",
"port": "xx",
"user": "xx",
"password": "xx",
"ip_scan_channel": "ip2location",
"protocol": "socks5",
"refresh_url": "xxx",
"proxy_url": "xxx:xxx@xxx:xxx"
}
{
"code": 200,
"data": {
"message": "success",
"result": []
},
"message": "success"
}