witchcraft-go-server
witchcraft-go-server copied to clipboard
Expose listener address when configured for port 0
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
ServeTLSinstead of usingListenAndServeTLSso we can log the address - more involved: expose this info over an API (maybe on the
*Serverobject?)