Skip to content

fix(host-modal): validate SSH port range (1-65535) - #206

Merged
Cleboost merged 1 commit into
masterfrom
fix/host-modal-port-validation
Nov 26, 2026
Merged

Cleboost merged 1 commit into
masterfrom
fix/host-modal-port-validation

Conversation

@Cleboost

Copy link
Copy Markdown
Owner

Summary

  • Prevent invalid ports (e.g. 99999, 0, non-numeric input) from silently falling back to 22 when saving a host.
  • Added HostModalState::parsed_port(&self) -> Option<u16> requiring 1..=65535.
  • Highlight the port input border in theme::DANGER and display a localized error message (panel_port_invalid) when the port is invalid.
  • Disable the Save and Save & Connect buttons until a valid port is entered.

@Cleboost
Cleboost merged commit d2ae510 into master Nov 26, 2026
1 of 3 checks passed
@Cleboost
Cleboost deleted the fix/host-modal-port-validation branch November 26, 2026 18:06
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