Skip to content

同时更新IPv4和IPv6的配置文件怎么写呀? #203

@lhbdhr

Description

@lhbdhr

我搜了issue,看功能是支持的。但是看readme还是没明白应该怎么写,请求大佬支援。
另外v4和v6可以用同一个域名吗?

{
  "provider": "Cloudflare",
  "login_token": "xxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "domains": [
    {
      "domain_name": "xxxxxxxxxx.com",
      "sub_domains": ["plex"]
    }
  ],
  "resolver": "8.8.8.8",
  "ip_urls": ["https://api-ipv4.ip.sb/ip"],
  "ipv6_urls": ["https://api6.ipify.org/"],
  "ip_type": "IPv4/IPv6",    // 我这里填写了这个,但是不管用。
  "interval": 300,
  "socks5_proxy": "127.0.0.1:7890",
  "use_proxy": true,
  "debug_info": true,
  "proxied": false,
  "notify": {
    "telegram": {
      "enabled": true,
      "bot_api_key": "xxxxxxxxxxxxxxxxxx",
      "chat_id": "xxxxxxxxxxxxxxxx",
      "message_template": "Domain *{{ .Domain }}* is updated to %0A{{ .CurrentIP }}",
      "use_proxy": false
    }
  }
}

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions