Skip to content

fix(console): store a typed host address bare - #37

Merged
enricobuehler merged 1 commit into
mainfrom
fix/typed-host-address
Nov 26, 2026
Merged

enricobuehler merged 1 commit into
mainfrom
fix/typed-host-address

Conversation

@enricobuehler

Copy link
Copy Markdown
Member

The add and edit forms stored the address field as typed. A pasted host:port kept its port inside the address, and a bracketed IPv6 was bracketed again by base_url, so neither host could be dialled.

Both forms now go through the shared HostEdit::typed, as the in-repo console does (clients/session/src/console.rs): the address is stored bare, and a pasted port replaces the port field's.

Checks

cargo fmt --all --check, cargo test -p pf-nx-app (93 passed, including the new a_typed_address_is_stored_bare), cargo clippy -p pf-nx-app --all-targets -- -D warnings. Not run on a console.

The add and edit forms stored the address field as typed. A pasted
host:port kept its port in the address, and a bracketed IPv6 was
bracketed again by base_url, so neither host could be dialled.

Both forms now go through the shared HostEdit::typed: the address is
stored bare, and a pasted port replaces the port field's.
@enricobuehler
enricobuehler merged commit aebf41e into main Nov 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant