mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-13 21:30:46 +02:00
When `multica login` runs against production (multica.ai), the CLI was using the app URL hostname as the callback host, producing a callback URL like `http://multica.ai:PORT/callback`. This URL fails frontend validation (which only allows localhost and private IPs) and can't actually reach the CLI's local HTTP server. Now only private IPs (RFC 1918) are used as the callback host, which matches the intended self-hosted LAN scenario. Public hostnames correctly fall back to localhost. Fixes #974