Skip to content

proposal: x/net/internal/socks: make it public #66320

@noonien

Description

@noonien

Proposal Details

x/net/proxy.SOCKS5 returns an x/net/internal/socks.Dialer, when Dialing to create a new connection, a *socks.Conn is returned, and the BoundAddr() method can be accessed by creating an interface, however, because the socks.Addr struct is not available, its fields cannot be accessed without using reflection, or parsing strings.

I'm unsure what the benefit of making the socks package internal is, but if making it non-internal is an issue, perhaps there is another way of exposing BoundAddr().

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Incoming

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions