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
Commits
c288a731
Commit
c288a731
authored
Dec 03, 2015
by
Juan Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix silly if error. Fixes #10
parent
48959f1f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
impl_unix.go
impl_unix.go
+1
-1
No files found.
impl_unix.go
View file @
c288a731
...
...
@@ -106,7 +106,7 @@ func dial(dialer net.Dialer, netw, addr string) (c net.Conn, err error) {
// check family and protocols match.
lfamily
=
sockaddrnet
.
NetAddrAF
(
dialer
.
LocalAddr
)
lprotocol
=
sockaddrnet
.
NetAddrIPPROTO
(
dialer
.
LocalAddr
)
if
lfamily
!=
rfamily
&&
lprotocol
!=
r
family
{
if
lfamily
!=
rfamily
||
lprotocol
!=
r
protocol
{
return
nil
,
&
net
.
AddrError
{
Err
:
"unexpected address type"
,
Addr
:
netAddr
.
String
()}
}
}
...
...
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