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
0795217c
Commit
0795217c
authored
Apr 28, 2015
by
Jeromy
Browse files
dont advertise loopback address over mdns
parent
4a260476
Changes
1
Hide whitespace changes
Inline
Side-by-side
discovery/mdns.go
View file @
0795217c
...
...
@@ -44,6 +44,9 @@ type mdnsService struct {
func
getDialableListenAddr
(
ph
host
.
Host
)
(
*
net
.
TCPAddr
,
error
)
{
for
_
,
addr
:=
range
ph
.
Addrs
()
{
if
manet
.
IsIPLoopback
(
addr
)
{
continue
}
na
,
err
:=
manet
.
ToNetAddr
(
addr
)
if
err
!=
nil
{
continue
...
...
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