mirage / ocaml-cohttp

An OCaml library for HTTP clients and servers using Lwt or Async

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cohttp_eio.Server.run is hardcoded to listen on loopback

yawaramin opened this issue · comments

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 ->
  _

Right! Fixed by #984