自动更新白名单IP
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

638 B

配置config.cfg

  • url : 代理获取url
  • index: ip白名单编号,不同的机器配置不同编号,编号从0开始(相同公网IP的内网机器使用相同的编号)
  • wait: 更新IP间隔,单位秒

安装运行

  • pip install -r requirements.txt
  • nohup python renew_ip.py &

API参考

添加/修改白名单IP

  • 在链接后面加上 &limitip=append&newip=[ip] ,[ip] 需要添加的ip地址,如果数量超过限制则添加失败
  • 在链接后面加上 &limitip=append&newip=[ip]&index=-1 ,[ip] 需要添加的新IP地址 ,[index] 需要修改的旧IP索引位置,-1为列表中最后一个,0为列表中第一个