Help: Cannot add "proxied" to Cloudflare config. #558

Closed
opened 2025-11-20 04:24:59 -05:00 by saavagebueno · 3 comments
Owner

Originally created by @devanteweary on GitHub (Oct 7, 2025).

I get the following error when adding the proxied option to Cloudflare in the config.json: 2025-10-07T19:26:32-07:00 ERROR json: cannot unmarshal string into Go struct field .proxied of type bool

  1. Is this urgent: No
  2. DNS provider(s) you use: Cloudflare, No-IP, DuckDNS
  3. Program version: 2025-10-07T16:30:09.195Z (commit 95bcce2)
  4. What are you using to run the container: Unraid Docker
  5. Extra information (optional):

If I add the proxied option, I get that error.
If I take it out, everything works fine except the container shows as unhealthy.

Regarding the unhealthy part, if I check docker inspect ddns-updater, I get the following under State > Health Log:

  • "Output": "2025-10-07T19:18:39-07:00 ERROR program is unhealthy: lookup IP addresses do not match: 172.67.X.X,104.21.X.X,2606:4700:3030::XXXX:XXXX,XXXX:4700:3035::6815:ce9 instead of 67.174.39.71 for \n\n2025-10-07T19:18:39-07:00 INFO Shutdown successful\n"

I get that about four or five times. The 172.67 address is my CloudFlare proxied IP. I blanked out the identifying parts.

This all stemmed from me trying to fix Unraid showing the container as Unhealthy.

Logs:


========================================
========================================
============= ddns-updater =============
========================================
=========== Made with ❤️ by ============
======= https://github.com/qdm12 =======
========================================
========================================

Running version latest built on 2025-10-07T16:30:09.195Z (commit 95bcce2)

🔧 Need help? ☕ Discussion? https://github.com/qdm12/ddns-updater/discussions/new/choose
🐛 Bug? ✨ New feature? https://github.com/qdm12/ddns-updater/issues/new/choose
💻 Email? quentin.mcgaw@gmail.com
💰 Help me? https://www.paypal.me/qmcgaw https://github.com/sponsors/qdm12
2025-10-07T19:27:24-07:00 INFO Settings summary:
├── HTTP client
|   └── Timeout: 10s
├── Update
|   ├── Period: 5m0s
|   └── Cooldown: 5m0s
├── Public IP fetching
|   ├── HTTP enabled: yes
|   ├── HTTP IP providers
|   |   └── all
|   ├── HTTP IPv4 providers
|   |   └── all
|   ├── HTTP IPv6 providers
|   |   └── all
|   ├── DNS enabled: yes
|   ├── DNS timeout: 3s
|   └── DNS over TLS providers
|       └── all
├── Resolver: use Go default resolver
├── Server
|   ├── Listening address: :8000
|   └── Root URL: /
├── Health
|   └── Server listening address: 127.0.0.1:9999
├── Paths
|   ├── Data directory: /updater/data
|   ├── Config file: /updater/data/config.json
|   └── Umask: system default
├── Backup
|   ├── Period: 24h0m0s
|   └── Directory: /updater/data/backup
└── Logger
    ├── Level: info
    └── Caller: hidden
2025-10-07T19:27:24-07:00 INFO reading JSON config from file /updater/data/config.json
2025-10-07T19:27:24-07:00 ERROR json: cannot unmarshal string into Go struct field .proxied of type bool
2025-10-07T19:27:24-07:00 INFO Shutdown successful

Docker Inspect results (trunicated):

docker inspect ddns-updater
[
    {
        "Id": "XXXXXXXXXXXXXXXXXXXXXXXXX",
        "Created": "2025-10-08T01:19:19.905833603Z",
        "Path": "/updater/ddns-updater",
        "Args": [],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 951080,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2025-10-08T01:19:20.150065589Z",
            "FinishedAt": "0001-01-01T00:00:00Z",
            "Health": {
                "Status": "unhealthy",
                "FailingStreak": 16,
                "Log": [
                    {
                        "Start": "2025-10-07T18:30:31.301785468-07:00",
                        "End": "2025-10-07T18:30:31.439534184-07:00",
                        "ExitCode": 1,
                        "Output": "2025-10-07T18:30:31-07:00 ERROR program is unhealthy: lookup IP addresses do not match: 172.67.XXXXXX,104.21.XXX.XXX,2606:4700:3030::XXXX:XXXX:XXXX:XXXX::XXXX:ce9 instead of 67.174.39.71 for XXXXXXX.COM\n\n2025-10-07T18:30:31-07:00 INFO Shutdown successful\n"
                    },
                    {
                        "Start": "2025-10-07T18:31:31.439919445-07:00",
                        "End": "2025-10-07T18:31:31.496186873-07:00",
                        "ExitCode": 1,
                        "Output": "2025-10-07T18:31:31-07:00 ERROR program is unhealthy: lookup IP addresses do not match: 172.67.XXXXXX,104.21.XXX.XXX,2606:4700:3030::XXXX:XXXX:XXXX:XXXX::XXXX:ce9 instead of 67.174.39.71 for XXXXXXX.COM\n\n2025-10-07T18:30:31-07:00 INFO Shutdown successful\n"
                    },
                    {
                        "Start": "2025-10-07T18:32:31.497038951-07:00",
                        "End": "2025-10-07T18:32:31.555698979-07:00",
                        "ExitCode": 1,
                        "Output": "2025-10-07T18:32:31-07:00 ERROR program is unhealthy: lookup IP addresses do not match: 172.67.XXXXXX,104.21.XXX.XXX,2606:4700:3030::XXXX:XXXX:XXXX:XXXX::XXXX:ce9 instead of 67.174.39.71 for XXXXXXX.COM\n\n2025-10-07T18:30:31-07:00 INFO Shutdown successful\n"
                    },
                    {
                        "Start": "2025-10-07T18:33:31.55688589-07:00",
                        "End": "2025-10-07T18:33:31.613705226-07:00",
                        "ExitCode": 1,
                        "Output": "2025-10-07T18:33:31-07:00 ERROR program is unhealthy: lookup IP addresses do not match: 172.67.XXXXXX,104.21.XXX.XXX,2606:4700:3030::XXXX:XXXX:XXXX:XXXX::XXXX:ce9 instead of 67.174.39.71 for XXXXXXX.COM\n\n2025-10-07T18:30:31-07:00 INFO Shutdown successful\n"
                    },
                    {
                        "Start": "2025-10-07T18:34:31.614348804-07:00",
                        "End": "2025-10-07T18:34:31.669714933-07:00",
                        "ExitCode": 1,
                        "Output": "2025-10-07T18:34:31-07:00 ERROR program is unhealthy: lookup IP addresses do not match: 172.67.XXXXXX,104.21.XXX.XXX,2606:4700:3030::XXXX:XXXX:XXXX:XXXX::XXXX:ce9 instead of 67.174.39.71 for XXXXXXX.COM\n\n2025-10-07T18:30:31-07:00 INFO Shutdown successful\n"
                    }
                ]
            }
        },
        "Image": "sha256:b5ba52fb7c3f339098f0d27515cc63bab6dab624a1003a3a56b71b13eff81b76",
        "ResolvConfPath": "/var/lib/docker/containers/07fd2c6db575561045bb602871bee39776c86316e92c6566cc52ebb6395180e0/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/07fd2c6db575561045bb602871bee39776c86316e92c6566cc52ebb6395180e0/hostname",
        "HostsPath": "/var/lib/docker/containers/07fd2c6db575561045bb602871bee39776c86316e92c6566cc52ebb6395180e0/hosts",
        "LogPath": "",
        "Name": "/ddns-updater",
        "RestartCount": 0,
        "Driver": "btrfs",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "",
        "ExecIDs": null,


<trunicated, I can post the rest if needed>

Configuration file (remove your credentials!):


{
  "settings": [
    {
      "provider": "cloudflare",
      "zone_identifier": "XXXXXXXXXXXXXXXXXXX",
      "domain": "XXXXXX.com",
      "ttl": 1,
      "token": "XXXXXXXXXXXXXXXXXXX",
      "proxied": "true",
      "ip_version": "ipv4"
      },
    {
      "provider": "cloudflare",
      "zone_identifier": "XXXXXXXXXXXXXXXXXXX",
      "domain": "XXXXXXXXXXX.com",
      "ttl": 1,
      "token": "XXXXXXXXXXXXXXXXXXX",
      "proxied": "true",
      "ip_version": "ipv4"
        },
    {
      "provider": "noip",
      "domain": "XXXXXXXX.servebeer.com",
      "username": "XXXXXXXXXXXXXXXXXXX",
      "password": "XXXXXXXXXXXXXXXXXXX",
      "ip_version": "ipv4"
        },
    {
      "provider": "duckdns",
      "domain": "XXXXXXX.duckdns.org",
      "token": "XXXXXXXXXXXXXXXXXXX",
      "ip_version": "ipv4"
        }
  ]
}


Host OS: Unraid 7.1.4

Originally created by @devanteweary on GitHub (Oct 7, 2025). I get the following error when adding the `proxied` option to Cloudflare in the config.json: `2025-10-07T19:26:32-07:00 ERROR json: cannot unmarshal string into Go struct field .proxied of type bool` 1. Is this urgent: No 2. DNS provider(s) you use: Cloudflare, No-IP, DuckDNS 3. Program version: 2025-10-07T16:30:09.195Z (commit 95bcce2) 4. What are you using to run the container: Unraid Docker 5. Extra information (optional): If I add the proxied option, I get that error. If I take it out, everything works fine except the container shows as unhealthy. Regarding the unhealthy part, if I check `docker inspect ddns-updater`, I get the following under State > Health Log: - "Output": "2025-10-07T19:18:39-07:00 ERROR program is unhealthy: lookup IP addresses do not match: 172.67.X.X,104.21.X.X,2606:4700:3030::XXXX:XXXX,XXXX:4700:3035::6815:ce9 instead of 67.174.39.71 for <OMITTED FQDN>\n\n2025-10-07T19:18:39-07:00 INFO Shutdown successful\n" I get that about four or five times. The 172.67 address is my CloudFlare proxied IP. I blanked out the identifying parts. This all stemmed from me trying to fix Unraid showing the container as Unhealthy. Logs: ``` ======================================== ======================================== ============= ddns-updater ============= ======================================== =========== Made with ❤️ by ============ ======= https://github.com/qdm12 ======= ======================================== ======================================== Running version latest built on 2025-10-07T16:30:09.195Z (commit 95bcce2) 🔧 Need help? ☕ Discussion? https://github.com/qdm12/ddns-updater/discussions/new/choose 🐛 Bug? ✨ New feature? https://github.com/qdm12/ddns-updater/issues/new/choose 💻 Email? quentin.mcgaw@gmail.com 💰 Help me? https://www.paypal.me/qmcgaw https://github.com/sponsors/qdm12 2025-10-07T19:27:24-07:00 INFO Settings summary: ├── HTTP client | └── Timeout: 10s ├── Update | ├── Period: 5m0s | └── Cooldown: 5m0s ├── Public IP fetching | ├── HTTP enabled: yes | ├── HTTP IP providers | | └── all | ├── HTTP IPv4 providers | | └── all | ├── HTTP IPv6 providers | | └── all | ├── DNS enabled: yes | ├── DNS timeout: 3s | └── DNS over TLS providers | └── all ├── Resolver: use Go default resolver ├── Server | ├── Listening address: :8000 | └── Root URL: / ├── Health | └── Server listening address: 127.0.0.1:9999 ├── Paths | ├── Data directory: /updater/data | ├── Config file: /updater/data/config.json | └── Umask: system default ├── Backup | ├── Period: 24h0m0s | └── Directory: /updater/data/backup └── Logger ├── Level: info └── Caller: hidden 2025-10-07T19:27:24-07:00 INFO reading JSON config from file /updater/data/config.json 2025-10-07T19:27:24-07:00 ERROR json: cannot unmarshal string into Go struct field .proxied of type bool 2025-10-07T19:27:24-07:00 INFO Shutdown successful ``` Docker Inspect results (trunicated): ``` docker inspect ddns-updater [ { "Id": "XXXXXXXXXXXXXXXXXXXXXXXXX", "Created": "2025-10-08T01:19:19.905833603Z", "Path": "/updater/ddns-updater", "Args": [], "State": { "Status": "running", "Running": true, "Paused": false, "Restarting": false, "OOMKilled": false, "Dead": false, "Pid": 951080, "ExitCode": 0, "Error": "", "StartedAt": "2025-10-08T01:19:20.150065589Z", "FinishedAt": "0001-01-01T00:00:00Z", "Health": { "Status": "unhealthy", "FailingStreak": 16, "Log": [ { "Start": "2025-10-07T18:30:31.301785468-07:00", "End": "2025-10-07T18:30:31.439534184-07:00", "ExitCode": 1, "Output": "2025-10-07T18:30:31-07:00 ERROR program is unhealthy: lookup IP addresses do not match: 172.67.XXXXXX,104.21.XXX.XXX,2606:4700:3030::XXXX:XXXX:XXXX:XXXX::XXXX:ce9 instead of 67.174.39.71 for XXXXXXX.COM\n\n2025-10-07T18:30:31-07:00 INFO Shutdown successful\n" }, { "Start": "2025-10-07T18:31:31.439919445-07:00", "End": "2025-10-07T18:31:31.496186873-07:00", "ExitCode": 1, "Output": "2025-10-07T18:31:31-07:00 ERROR program is unhealthy: lookup IP addresses do not match: 172.67.XXXXXX,104.21.XXX.XXX,2606:4700:3030::XXXX:XXXX:XXXX:XXXX::XXXX:ce9 instead of 67.174.39.71 for XXXXXXX.COM\n\n2025-10-07T18:30:31-07:00 INFO Shutdown successful\n" }, { "Start": "2025-10-07T18:32:31.497038951-07:00", "End": "2025-10-07T18:32:31.555698979-07:00", "ExitCode": 1, "Output": "2025-10-07T18:32:31-07:00 ERROR program is unhealthy: lookup IP addresses do not match: 172.67.XXXXXX,104.21.XXX.XXX,2606:4700:3030::XXXX:XXXX:XXXX:XXXX::XXXX:ce9 instead of 67.174.39.71 for XXXXXXX.COM\n\n2025-10-07T18:30:31-07:00 INFO Shutdown successful\n" }, { "Start": "2025-10-07T18:33:31.55688589-07:00", "End": "2025-10-07T18:33:31.613705226-07:00", "ExitCode": 1, "Output": "2025-10-07T18:33:31-07:00 ERROR program is unhealthy: lookup IP addresses do not match: 172.67.XXXXXX,104.21.XXX.XXX,2606:4700:3030::XXXX:XXXX:XXXX:XXXX::XXXX:ce9 instead of 67.174.39.71 for XXXXXXX.COM\n\n2025-10-07T18:30:31-07:00 INFO Shutdown successful\n" }, { "Start": "2025-10-07T18:34:31.614348804-07:00", "End": "2025-10-07T18:34:31.669714933-07:00", "ExitCode": 1, "Output": "2025-10-07T18:34:31-07:00 ERROR program is unhealthy: lookup IP addresses do not match: 172.67.XXXXXX,104.21.XXX.XXX,2606:4700:3030::XXXX:XXXX:XXXX:XXXX::XXXX:ce9 instead of 67.174.39.71 for XXXXXXX.COM\n\n2025-10-07T18:30:31-07:00 INFO Shutdown successful\n" } ] } }, "Image": "sha256:b5ba52fb7c3f339098f0d27515cc63bab6dab624a1003a3a56b71b13eff81b76", "ResolvConfPath": "/var/lib/docker/containers/07fd2c6db575561045bb602871bee39776c86316e92c6566cc52ebb6395180e0/resolv.conf", "HostnamePath": "/var/lib/docker/containers/07fd2c6db575561045bb602871bee39776c86316e92c6566cc52ebb6395180e0/hostname", "HostsPath": "/var/lib/docker/containers/07fd2c6db575561045bb602871bee39776c86316e92c6566cc52ebb6395180e0/hosts", "LogPath": "", "Name": "/ddns-updater", "RestartCount": 0, "Driver": "btrfs", "Platform": "linux", "MountLabel": "", "ProcessLabel": "", "AppArmorProfile": "", "ExecIDs": null, <trunicated, I can post the rest if needed> ``` Configuration file (**remove your credentials!**): ``` { "settings": [ { "provider": "cloudflare", "zone_identifier": "XXXXXXXXXXXXXXXXXXX", "domain": "XXXXXX.com", "ttl": 1, "token": "XXXXXXXXXXXXXXXXXXX", "proxied": "true", "ip_version": "ipv4" }, { "provider": "cloudflare", "zone_identifier": "XXXXXXXXXXXXXXXXXXX", "domain": "XXXXXXXXXXX.com", "ttl": 1, "token": "XXXXXXXXXXXXXXXXXXX", "proxied": "true", "ip_version": "ipv4" }, { "provider": "noip", "domain": "XXXXXXXX.servebeer.com", "username": "XXXXXXXXXXXXXXXXXXX", "password": "XXXXXXXXXXXXXXXXXXX", "ip_version": "ipv4" }, { "provider": "duckdns", "domain": "XXXXXXX.duckdns.org", "token": "XXXXXXXXXXXXXXXXXXX", "ip_version": "ipv4" } ] } ``` Host OS: Unraid 7.1.4
Author
Owner

@marcus-k commented on GitHub (Oct 13, 2025):

I have this same issue :/ Would love to know what's going on.

@marcus-k commented on GitHub (Oct 13, 2025): I have this same issue :/ Would love to know what's going on.
Author
Owner

@wilkinsalex commented on GitHub (Nov 6, 2025):

Proxied is a boolean response, not a string. so your configuration needs to be.

"proxied": true,

true / false, without the quotes. It works for me

@wilkinsalex commented on GitHub (Nov 6, 2025): Proxied is a boolean response, not a string. so your configuration needs to be. `"proxied": true,` true / false, without the quotes. It works for me
Author
Owner

@devanteweary commented on GitHub (Nov 17, 2025):

I kinda forgot about this issue but I just checked and looks like I had removed the proxy line and the Cloudflare updating seems to be fine when I checked just now.

I do in fact have my Cloudflare domains set to proxy but for whatever reason, it seems to be working.

@devanteweary commented on GitHub (Nov 17, 2025): I kinda forgot about this issue but I just checked and looks like I had removed the proxy line and the Cloudflare updating seems to be fine when I checked just now. I do in fact have my Cloudflare domains set to proxy but for whatever reason, it seems to be working.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ddns-updater#558