Open max-mapper opened 7 years ago
I think related to https://github.com/mafintosh/discovery-swarm/pull/11#issuecomment-261333232
It's unrelated. The port is the public port the dht sees when using utp (they share a socket in order for hole punching to work)
Why are you explicitly passing a port to listen on instead of having the swarm pick it?
when running this code inside a docker container:
I get the debug
discovery-channel whoami() succeeded, I am: { port: 9000, host: '104.197.167.83' } +113ms
But running this:
I get debug
discovery-channel whoami() succeeded, I am: { port: 57969, host: '104.197.167.83' } +118ms
In this case I expect 57969 from both cases, 9000 is the internal port in the docker container and is the wrong port to return