Entities 0.2.4: Admin pages no longer reconnect forever behind Docker proxies
Entities 0.2.4 fixes the Entities admin pages on sites where the visitor’s address reaches the app in IPv6 form. There, every Entities page crashed as it opened and kept reconnecting forever.
The pages read the visitor’s address when they start, and the code that turned it into text only understood the plain IPv4 form. An IPv4 address wrapped as IPv6, such as ::ffff:10.0.0.1, which Docker bridge networks behind a reverse proxy commonly pass on, made it crash. Addresses in both forms are now written correctly, and anything unreadable becomes “unknown” instead of an error.
Nothing else changes; the rest of the release is dependency lock updates.
Full release notes: Entities 0.2.4
0.2.4 · 25 May 2026
Fixed
PhoenixKitEntities.Web.Hooks.extract_ip/1crashed withProtocol.UndefinedError: protocol String.Chars not implemented for Tupleon any non-4-tuple peer address — most commonly the IPv4-mapped IPv6 form::ffff:a.b.c.dthat Docker bridge networks behind a reverse proxy emit. Becauseextract_ip/1runs insideon_mount, every entity LiveView entered a mount → crash → reconnect loop, leaving the admin Entities pages reconnecting forever. The address formatter now routes all tuples through:inet.ntoa/1, which handles both IPv4 4-tuples and IPv6 8-tuples and maps bad input to"unknown"instead of raising. (#17, #18)
Changed
- Dependency lockfile bumps:
phoenix_kit1.7.116 → 1.7.120,etcher0.4.6 → 0.5.1,fresco0.5.4 → 0.6.3,ex_doc0.40.2 → 0.40.3 (ex_docis docs/dev-only).
Entities 0.2.4. Install or update: {:phoenix_kit_entities, "~> 0.2"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.