Custom Dialer for TCP transports #3155
Labels
effort/days
Estimated to take multiple days, but less than a week
effort/hours
Estimated to take one or several hours
exp/intermediate
Prior experience is likely helpful
P2
Medium: Good to have, but can wait until someone steps up
Some environments need to proxy TCP connections. Instead of trying to handle all cases in the library, allow a user to specify a custom
interface { DialContext(ctx context.Context, network, address string) (net.Conn, error) }
to use.We should expose a new
Option
calledCustomTCPDialer
that accepts afunc(remoteAddr multiaddr.Multiaddr) (ContextDialer, error)
. If set, this function should be used instead of the standard net.Dialer.cc @parkan (see #3137 (comment) for some more background information)
The text was updated successfully, but these errors were encountered: