用于监控多次请求,端出口ip的变动状态
version: '3'
services:
monitor-ip:
image: clibing/monitor:ip
container_name: monitor-ip
ports:
- 8080:8080
command: ["/bin/monitor", "-port", "8080"]
获取当前出口ip
curl --location --request GET 'https://tool.linuxcrypt.cn/ip'
检查当前出口ip是否发生变动
例如 source是 树莓派4
curl --location --request GET 'https://tool.linuxcrypt.cn/checkRemoteIp' \
--header 'Content-Type: application/json' \
--data-raw '{
"source":"raspi4"
}'
响应
{
"code": 200,
"data": {
"source": "raspi4",
"ip": "114.113.120.5",
"last_ip": "114.113.120.5",
"different": false
}
}
Content type
Image
Digest
sha256:c006a04da…
Size
10.4 MB
Last updated
over 3 years ago
docker pull clibing/monitor:ip