Update src/Tiny_httpd.ml

This commit is contained in:
Simon Cruanes 2021-09-25 14:41:42 -04:00 committed by GitHub
parent 8414efc3e0
commit 0e05b8cac6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1069,7 +1069,7 @@ let run (self:t) : (unit,_) result =
);
let sock, should_bind = match self.sock with
| Some s ->
s, false (* Because we're getting a socket from systemd *)
s, false (* Because we're getting a socket from the caller (e.g. systemd) *)
| None ->
Unix.socket
(if is_ipv6 self then Unix.PF_INET6 else Unix.PF_INET)