Add option to allow specifying address to bind to
I have attempted to maintain full backwards compatibility while also allowing one to specify the bind address with --listen-prometheus-addr which otherwise just defaults to 0.0.0.0.
Unfortunately something in conduit_lwt_server throws Uncaught exception accepting connection: Unix.Unix_error(Unix.EINVAL, "accept", "") when trying to use this no matter what address is being used.
I'm hoping the maintainers of this repo can shed some light on what might be going on otherwise I will open an issue against conduit as I think the implementation in this PR should work.
EDIT: I just came across this bit regarding the use of cloexec, thoughts?
Well, you're creating sockaddr but then throwing the address away and just keeping the domain. You probably want to bind somewhere.
Beej's Guide to the rescue. The PR works now :smiley: