x/crypto/ssh: support service names in Client.Dial with net.LookupPort #63771
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Proposal
Milestone
Add support for service names additional to port numbers to
ssh.Client.Dial
.PR: https://go.dev/cl/443775 (golang/crypto#235)
net.Dial
already supports this same, this proposal adds that same feature tossh.Client.Dial
.Currently
ssh.Client.Dial
usesstrconv.ParseUint
to convert a port number as string into the int type it needs.The proposal is to use
net.LookupPort
instead.net.LookupPort
is purpose build for interpreting strings as ports and has the additional feature that it also supports service names.The text was updated successfully, but these errors were encountered: