Files
dioxus/packages
John CostaandJonathan Kelley cb5abb48dd fix(cli): display user-specified address in serve output (#5481)
* fix(cli): display user-specified address in serve output

When running `dx serve --addr 0.0.0.0`, the CLI was overriding the
displayed address to 127.0.0.1. This was confusing for users who
explicitly chose 0.0.0.0 and expected the output to reflect their
choice. The default (127.0.0.1) is unchanged when no --addr flag is
given.

Fixes #5477

* fix(cli): resolve actual network IP when bound to 0.0.0.0

Instead of showing the unroutable 0.0.0.0, use the UDP socket trick
to resolve the machine's primary network address for a clickable URL.
Falls back to 127.0.0.1 when resolution fails (no network, etc).

* style: apply rustfmt to test function calls

* fit longer urls in tui frame

* space

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2026-04-14 16:52:43 -07:00
..
2026-04-14 15:37:30 -07:00
2025-08-20 10:49:03 -07:00
2026-01-25 13:54:26 -08:00
2026-04-14 14:34:41 -07:00
2025-10-30 21:26:01 -07:00
2025-10-30 21:26:01 -07:00
2025-11-17 08:09:41 -06:00
2026-04-14 15:37:30 -07:00
2026-04-14 12:10:58 -07:00