diff --git a/.openclaw-sync/source.json b/.openclaw-sync/source.json index 0024d8dd7..e3d2f6c31 100644 --- a/.openclaw-sync/source.json +++ b/.openclaw-sync/source.json @@ -1,5 +1,5 @@ { "repository": "openclaw/openclaw", - "sha": "4cba24a4c35233db5af9a248d7cf7b6879302900", - "syncedAt": "2026-04-26T04:50:57.146Z" + "sha": "d1a5ea2024a3b8e86d6595ae9f018545b3a6068c", + "syncedAt": "2026-04-26T04:52:01.714Z" } diff --git a/docs/gateway/bonjour.md b/docs/gateway/bonjour.md index 0f0e8e5cd..0a3582f27 100644 --- a/docs/gateway/bonjour.md +++ b/docs/gateway/bonjour.md @@ -160,6 +160,9 @@ The log includes browser state transitions and result‑set changes. container bridges, WSL, or interface churn can leave the ciao advertiser in a non-announced state. OpenClaw retries a few times and then disables Bonjour for the current Gateway process instead of restarting the advertiser forever. +- **Docker bridge networking**: bundled Docker Compose disables Bonjour by + default with `OPENCLAW_DISABLE_BONJOUR=1`. Set it to `0` only for host, + macvlan, or another mDNS-capable network. - **Sleep / interface churn**: macOS may temporarily drop mDNS results; retry. - **Browse works but resolve fails**: keep machine names simple (avoid emojis or punctuation), then restart the Gateway. The service instance name derives from @@ -178,6 +181,7 @@ sequences (e.g. spaces become `\032`). - `openclaw plugins disable bonjour` disables LAN multicast advertising by disabling the bundled plugin. - `openclaw plugins enable bonjour` restores the default LAN discovery plugin. - `OPENCLAW_DISABLE_BONJOUR=1` disables LAN multicast advertising without changing plugin config; accepted truthy values are `1`, `true`, `yes`, and `on` (legacy: `OPENCLAW_DISABLE_BONJOUR`). +- Docker Compose sets `OPENCLAW_DISABLE_BONJOUR=1` by default for bridge networking; override with `OPENCLAW_DISABLE_BONJOUR=0` only when mDNS multicast is available. - `gateway.bind` in `~/.openclaw/openclaw.json` controls the Gateway bind mode. - `OPENCLAW_SSH_PORT` overrides the SSH port when `sshPort` is advertised (legacy: `OPENCLAW_SSH_PORT`). - `OPENCLAW_TAILNET_DNS` publishes a MagicDNS hint in TXT when mDNS full mode is enabled (legacy: `OPENCLAW_TAILNET_DNS`). diff --git a/docs/gateway/discovery.md b/docs/gateway/discovery.md index 100a60b3b..a8033af76 100644 --- a/docs/gateway/discovery.md +++ b/docs/gateway/discovery.md @@ -86,6 +86,9 @@ Security notes: Disable/override: - `OPENCLAW_DISABLE_BONJOUR=1` disables advertising. +- Docker Compose defaults `OPENCLAW_DISABLE_BONJOUR=1` because bridge networks + usually do not carry mDNS multicast reliably; use `0` only on host, macvlan, + or another mDNS-capable network. - `gateway.bind` in `~/.openclaw/openclaw.json` controls the Gateway bind mode. - `OPENCLAW_SSH_PORT` overrides the SSH port advertised when `sshPort` is emitted. - `OPENCLAW_TAILNET_DNS` publishes a `tailnetDns` hint (MagicDNS). diff --git a/docs/install/docker.md b/docs/install/docker.md index acbf91a97..741d8a05b 100644 --- a/docs/install/docker.md +++ b/docs/install/docker.md @@ -131,6 +131,7 @@ The setup script accepts these optional environment variables: | `OPENCLAW_HOME_VOLUME` | Persist `/home/node` in a named Docker volume | | `OPENCLAW_SANDBOX` | Opt in to sandbox bootstrap (`1`, `true`, `yes`, `on`) | | `OPENCLAW_DOCKER_SOCKET` | Override Docker socket path | +| `OPENCLAW_DISABLE_BONJOUR` | Disable Bonjour/mDNS advertising (defaults to `1` for Docker) | ### Health checks @@ -165,6 +166,17 @@ Use bind mode values in `gateway.bind` (`lan` / `loopback` / `custom` / `tailnet` / `auto`), not host aliases like `0.0.0.0` or `127.0.0.1`. +### Bonjour / mDNS + +Docker bridge networking usually does not forward Bonjour/mDNS multicast +(`224.0.0.251:5353`) reliably. The bundled Compose setup therefore defaults +`OPENCLAW_DISABLE_BONJOUR=1` so the Gateway does not crash-loop or repeatedly +restart advertising when the bridge drops multicast traffic. + +Use the published Gateway URL, Tailscale, or wide-area DNS-SD for Docker hosts. +Set `OPENCLAW_DISABLE_BONJOUR=0` only when running with host networking, macvlan, +or another network where mDNS multicast is known to work. + ### Storage and persistence Docker Compose bind-mounts `OPENCLAW_CONFIG_DIR` to `/home/node/.openclaw` and