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-sockaddr
Commits
a7494d4e
Unverified
Commit
a7494d4e
authored
Sep 04, 2018
by
Steven Allen
Committed by
GitHub
Sep 04, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14 from KerwinKoo/master
Just repair a commentate mistake.
parents
3c898fbf
ee4a2f7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
net/net.go
net/net.go
+1
-1
No files found.
net/net.go
View file @
a7494d4e
...
@@ -196,7 +196,7 @@ func UnixAddrToSockaddr(addr *net.UnixAddr) (Sockaddr, int) {
...
@@ -196,7 +196,7 @@ func UnixAddrToSockaddr(addr *net.UnixAddr) (Sockaddr, int) {
return
&
SockaddrUnix
{
Name
:
addr
.
Name
},
t
return
&
SockaddrUnix
{
Name
:
addr
.
Name
},
t
}
}
//
IPAndZoneTo
Sockaddr
converts
a net.IP (with optional IPv6 Zone)
to a Sockaddr
//
SockaddrToIPAndZone converts a
Sockaddr
to
a net.IP (with optional IPv6 Zone)
// Returns nil if conversion fails.
// Returns nil if conversion fails.
func
SockaddrToIPAndZone
(
sa
Sockaddr
)
(
net
.
IP
,
string
)
{
func
SockaddrToIPAndZone
(
sa
Sockaddr
)
(
net
.
IP
,
string
)
{
switch
sa
:=
sa
.
(
type
)
{
switch
sa
:=
sa
.
(
type
)
{
...
...
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