Commit fed46568 authored by Matt Joiner's avatar Matt Joiner

Use new go-reuseport.Control

parent 1e7f3dd8
......@@ -44,10 +44,9 @@ func reuseDial(ctx context.Context, laddr *net.TCPAddr, network, raddr string) (
return fallbackDialer.DialContext(ctx, network, raddr)
}
d := reuseport.Dialer{
D: net.Dialer{
LocalAddr: laddr,
},
d := net.Dialer{
LocalAddr: laddr,
Control: reuseport.Control,
}
con, err := d.DialContext(ctx, network, raddr)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment