Skip to content

net: LookupPort("tcp", "123") no longer returns 123 #12263

@rsc

Description

@rsc

This broke because the cgo-based lookup did accept "123" but the Go-based lookup does not. This means the behavior was at best inconsistent before, but it does make sense that you should be able to look up tcp/80 in addition to tcp/http.

If we have a more serious problem for a 1.5.1 this would be a candidate for an add-on.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions