ethersphere / bee

Bee is a Swarm client implemented in Go. It’s the basic building block for the Swarm network: a private; decentralized; and self-sustaining network for permissionless publishing and access to your (application) data.
https://www.ethswarm.org
BSD 3-Clause "New" or "Revised" License
1.46k stars 337 forks source link

p2p-enable-ws configuration option inconsequential / WS underlays not being added #4877

Open lat-murmeldjur opened 2 weeks ago

lat-murmeldjur commented 2 weeks ago

With latest bee, adding p2p-ws-enable: true does not result in websocket underlay appearing in /addresses endpoint. Furthermore, even if the if option.wsEnabled conditions are removed, ws underlay still does not appear. Workaround involved removing tcp transport / listen address for tcp, which interestingly resulted in ws underlay appearing in /addresses endpoint.

lat-murmeldjur commented 2 weeks ago

it's probably because of tcp.DisableReuseport() on the TCP transport and not having a different default port nor being able to specify a different port for WS through config