witchcraft-go-server icon indicating copy to clipboard operation
witchcraft-go-server copied to clipboard

Expose listener address when configured for port 0

Open bmoylan opened this issue 6 years ago • 0 comments

Configuring the server on port 0 tells the kernel to assign a random port and return the address. We could handle this more nicely:

  • easy: pass instantiated listener to ServeTLS instead of using ListenAndServeTLS so we can log the address
  • more involved: expose this info over an API (maybe on the *Server object?)

bmoylan avatar Apr 16 '19 04:04 bmoylan