shrpx_worker_process: worker_process_event_loop: Fix FD test.
This fixes a crash in nghttpx when running on IPv6 only.
This commit is contained in:
parent
15ea11d5db
commit
6fddefe252
|
@ -391,7 +391,7 @@ int worker_process_event_loop(WorkerProcessConfig *wpconf) {
|
|||
conn_handler.set_acceptor6(
|
||||
make_unique<AcceptHandler>(wpconf->server_fd6, &conn_handler));
|
||||
}
|
||||
if (wpconf->server_fd != 1) {
|
||||
if (wpconf->server_fd != -1) {
|
||||
conn_handler.set_acceptor(
|
||||
make_unique<AcceptHandler>(wpconf->server_fd, &conn_handler));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue