mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 11:15:35 -05:00
Update src/Tiny_httpd.ml
This commit is contained in:
parent
8414efc3e0
commit
0e05b8cac6
1 changed files with 1 additions and 1 deletions
|
|
@ -1069,7 +1069,7 @@ let run (self:t) : (unit,_) result =
|
||||||
);
|
);
|
||||||
let sock, should_bind = match self.sock with
|
let sock, should_bind = match self.sock with
|
||||||
| Some s ->
|
| 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 ->
|
| None ->
|
||||||
Unix.socket
|
Unix.socket
|
||||||
(if is_ipv6 self then Unix.PF_INET6 else Unix.PF_INET)
|
(if is_ipv6 self then Unix.PF_INET6 else Unix.PF_INET)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue