Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-reuseport-transport
Commits
fed46568
Commit
fed46568
authored
Dec 31, 2018
by
Matt Joiner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use new go-reuseport.Control
parent
1e7f3dd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
reuseport.go
reuseport.go
+3
-4
No files found.
reuseport.go
View file @
fed46568
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment