mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
http_server.{c,h}: make clear that IPv4 or IPv6 is used by http_server_init()
Reviewed-by: Viktor Dukhovni <viktor@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/25010)
This commit is contained in:
parent
7ec5d5916b
commit
ec4b123a96
@ -204,6 +204,7 @@ BIO *http_server_init(const char *prog, const char *port, int verb)
|
||||
goto err;
|
||||
acbio = BIO_new(BIO_s_accept());
|
||||
if (acbio == NULL
|
||||
|| BIO_set_accept_ip_family(acbio, BIO_FAMILY_IPANY) <= 0 /* IPv4/6 */
|
||||
|| BIO_set_bind_mode(acbio, BIO_BIND_REUSEADDR) <= 0
|
||||
|| BIO_set_accept_name(acbio, name) <= 0) {
|
||||
log_HTTP(prog, LOG_ERR, "error setting up accept BIO");
|
||||
|
Loading…
Reference in New Issue
Block a user