Closed gbird3 closed 2 years ago
Sorry for the late response. I have not tested this, but is this a bug at the ChirpStack Gateway Bridge side, or Basics Station?
( https://datatracker.ietf.org/doc/html/rfc6455#section-3 )
The Basics Station should use port 80
for ws://
and port 443
for wss://
. Therefore this change should not be needed?
Added to the above, would this work with IPv6, where an IP can contain colons and if the port is present, the IP and PORT are also separated by colons?
PR for #188
The r.host drops the port information if it is port 80. This makes it so the gateways get the wrong router_config and can't connect properly.
Add a check for if the port doesn't exist, and if it doesn't default to port 80.