Skip to content

proposal: x/crypto/ssh: support service names in Client.Dial with net.LookupPort  #63771

Open
@HouseK

Description

@HouseK

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 to ssh.Client.Dial.

Currently ssh.Client.Dial uses strconv.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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Proposal

    Type

    No type

    Projects

    Status

    Incoming

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions