Go to file
giaogiao 2b7462c2fe 配置全部json化 2023-07-31 16:54:22 +08:00
logs 带有日志系统的 2023-07-28 15:26:22 +08:00
setup 带有日志系统的 2023-07-28 15:26:22 +08:00
README.md 配置全部json化 2023-07-31 16:54:22 +08:00
go.mod 带有日志系统的 2023-07-28 15:26:22 +08:00
go.sum 带有日志系统的 2023-07-28 15:26:22 +08:00
main.go 配置全部json化 2023-07-31 16:54:22 +08:00
user.json 配置全部json化 2023-07-31 16:54:22 +08:00

README.md

json conf example

{
  "settings": {
    "api_url": "http://127.0.0.1:50101/api/get_ip_list?num=1&country=#country&state=all&city=all&zip=all&isp=all&ip_time=1&t=1&port=#port",
    "detection_time": 20,
    "detection_node_url": "https://ip.shagain.club/"
  },
  "node": [
    {
      "remarks": "giao",
      "country": "UK",
      "port": 30000
    },
    {
      "remarks": "giao2",
      "country": "UK",
      "port": 30001
    }
  ]
}


json conf explain

{
  "settings": {
    "api_url": "请求切换IP api #country #port 字符串模版",
    "detection_time": 检测间隔 单位秒,
    "detection_node_url": "检测的url"
  },
  "node": [
    {
      "remarks": "备注",
      "country": "国家代码",
      "port": 端口
    }
  ]
}