7ef294fd65
Unit Tests / test (push) Successful in 7m42s
On a fresh install before DDNS registration completes, ddns.token is empty. Writing `token ` (bare keyword, no value) causes Caddy to reject the Caddyfile at startup with "wrong argument count or unexpected line ending after 'token'". Guard added: if the token is empty, generate a LAN-mode Caddyfile so Caddy starts cleanly. The Caddyfile is regenerated automatically once registration completes and the token is persisted to cell_config.json. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>