Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: empty session and tunnel username are treated as null. #718

Conversation

CurtlyCritchlow
Copy link
Contributor

- What I did

  • Replaces empty string as null when using the session and tunnel username.
  • Added additional validation to SR Address, Device address, remote sshd port and local forwarding port.

- How I did it

- How to verify it

  1. Run the app
  2. edit or create a profile.
  3. enter an invalid value in the form field

- Description for the changelog

Improve validation when creating profiles and empty session and tunnel username are treated as null.

}
return null;
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specifically for ports, we can do one better, and say the range is 0-65535

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@XavierChanth
Copy link
Member

Nice work @CurtlyCritchlow

@CurtlyCritchlow CurtlyCritchlow merged commit bc161cf into trunk Jan 25, 2024
6 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.

Empty Session and Tunnel Username prevents a successful ssh in the desktop app
2 participants