Open arnetheduck opened 2 hours ago
When setting up a server with Port(0), baseUri should use the port given by localAddress so as to make it useful for connecting to the server (ie logging or sending publishing to clients).
Port(0)
baseUri
localAddress
https://github.com/status-im/nim-chronos/blob/9186950e03254b87533715f7c991a537b3167bef/chronos/apps/http/httpserver.nim#L261
When setting up a server with
Port(0)
,baseUri
should use the port given bylocalAddress
so as to make it useful for connecting to the server (ie logging or sending publishing to clients).