-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VNet: Refuse conn if local port doesn't match app spec (#49944)
* Add custom type for list of port ranges * Verify local port before initializing local proxy * Call AppResolver.OnInvalidLocalPort before refusing conn * Fix how lib/vnet.TCPAppResolver sets leafClusterName * Refactor CannotProxyVnetConnection This allows more reasons to be specified. * Improve how TshdNotificationsService gets cluster names * Let notifications override auto-removability * Send RPC to Electron app on invalid port * Remove impl of sort.Interface from PortRanges * Make GetTCPPorts return PortRanges * Test clusterName only against RootClusterName * Don't say "local port" in UI * Show valid ports in Connect * Show valid ports in tsh * Fix fake app provider in tests
- Loading branch information
Showing
17 changed files
with
2,561 additions
and
1,988 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.