Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
dec34b48
Commit
dec34b48
authored
Jan 22, 2015
by
Juan Batiz-Benet
Browse files
p2p/net/swarm/addr: check for nil addr
parent
3037ac2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
net/swarm/addr/addr.go
View file @
dec34b48
...
...
@@ -80,6 +80,9 @@ func AddrOverNonLocalIP(a ma.Multiaddr) bool {
// as we need to be able to connect to multiple ipfs nodes
// in the same machine.
func
AddrUsable
(
a
ma
.
Multiaddr
,
partial
bool
)
bool
{
if
a
==
nil
{
return
false
}
if
!
AddrOverNonLocalIP
(
a
)
{
return
false
...
...
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