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
7b431678
Commit
7b431678
authored
Oct 16, 2018
by
vyzo
Committed by
Steven Allen
Oct 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typo
parent
c2b139aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
private.go
private.go
+1
-1
No files found.
private.go
View file @
7b431678
...
...
@@ -65,7 +65,7 @@ func parseCIDR(cidrs []string) []*net.IPNet {
return
ipnets
}
// IsPublicAddr retruns true if the IP part of the multiaddr is a public
al
ly routable address
// IsPublicAddr retruns true if the IP part of the multiaddr is a publicly routable address
func
IsPublicAddr
(
a
ma
.
Multiaddr
)
bool
{
ip
,
err
:=
a
.
ValueForProtocol
(
ma
.
P_IP4
)
if
err
==
nil
{
...
...
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