-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add get_addresses() and get_port() to SSHAcceptor class
This commit adds functions to get listening socket information on SSH listeners. New method get_addresses() gets a list of all of the IP addresses and ports being listened on, and get_port() will return just the listening port, but only when there's a single listening socket or if all the sockets are listening on the same port. Otherwise, a value of 0 is returned. Thanks go to Allison Karlitskaya for suggesting this feature.
- Loading branch information
Showing
3 changed files
with
55 additions
and
5 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