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().
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.Addrstruct 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().