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
mf
go-multiaddr
Commits
a7b93d11
Commit
a7b93d11
authored
Mar 28, 2017
by
Jakub Sztandera
Committed by
GitHub
Mar 28, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #27 from jackkleeman/patch-1
Check for local ip6 addresses with more flexbility
parents
2b541b7f
ee4ab587
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ip.go
ip.go
+1
-1
No files found.
ip.go
View file @
a7b93d11
...
...
@@ -63,7 +63,7 @@ func IsIPLoopback(m ma.Multiaddr) bool {
}
// /ip6/::1
if
IP6Loopback
.
Equal
(
m
)
||
IP6LinkLocalLoopback
.
Equal
(
m
)
{
if
!
m
.
Decapsulate
(
IP6Loopback
)
.
Equal
(
m
)
||
!
m
.
Decapsulate
(
IP6LinkLocalLoopback
)
.
Equal
(
m
)
{
return
true
}
...
...
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