Skip to content

Conversation

@whyrusleeping
Copy link
Member

nodes were failing to connect to eachother on my LAN because they advertised their loopback address instead of their lan local address. just skip loopback addresses because any node on the same machine can connect via any of the interface addresses just the same.

@jbenet
Copy link
Member

jbenet commented Apr 29, 2015

@whyrusleeping any reason they're only advertising one address? they should be advertising all of them.

just skip loopback addresses because any node on the same machine can connect via any of the interface addresses just the same.

given how messy networking is, i'm sure there's some case where this isn't true. probably small.

@whyrusleeping
Copy link
Member Author

Yeah, for some reason it never occurred to me that I should put more than a single address on that message. even though the message supports multiple ip addresses...

@jbenet jbenet changed the title dont advertise loopback address over mdns advertise multiple addresses over mdns May 1, 2015
@jbenet
Copy link
Member

jbenet commented May 1, 2015

LGTM. (we should fix the tests)

jbenet added a commit that referenced this pull request May 1, 2015
advertise multiple addresses over mdns
@jbenet jbenet merged commit e5bca45 into master May 1, 2015
@jbenet jbenet removed the status/in-progress In progress label May 1, 2015
@jbenet jbenet deleted the fix/mdns-addr branch May 1, 2015 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants