Repository navigation
fix(console): store a typed host address bare - #29
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The add and edit forms stored the address field as typed. A pasted
host:portkept its port inside the address, and a bracketed IPv6 was bracketed again bybase_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-ps5-app(83 passed, including the newa_typed_address_is_stored_bare),cargo clippy -p pf-ps5-app --all-targets -- -D warnings.