Cohttp_eio.Server.run is hardcoded to listen on loopback
yawaramin opened this issue · comments
Yawar Amin commented
Which prevents from using it in a Docker container. Need to allow passing in an address e.g.
val run :
?socket_backlog:int ->
?domains:int ->
?addr:_ Eio.Net.Ipaddr.t ->
port:int ->
_ env ->
handler ->
_
Marcello Seri commented
I think the upcoming one solves the issue, or I am wrong? https://github.com/mirage/ocaml-cohttp/pull/984/files#diff-22b96a38d53e72e635d26efa1dd510bf757e3d25ce919c8e4367187238c36be2R50
Yawar Amin commented
Right! Fixed by #984