diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2020-09-29 14:32:53 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-10-11 12:19:27 -0400 |
commit | 8b382a81c737f13e28572cf7e85e8a229a8a53c9 (patch) | |
tree | 4be75079f87952043be35c6df07dbda9c94c43b5 /src/mod_extforward.c | |
parent | 86e5f09062c20bc2287e91d3d70ccbf9c065805d (diff) | |
download | lighttpd-git-8b382a81c737f13e28572cf7e85e8a229a8a53c9.tar.gz |
[multiple] use sock_addr_get_family in more places
Diffstat (limited to 'src/mod_extforward.c')
-rw-r--r-- | src/mod_extforward.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_extforward.c b/src/mod_extforward.c index 1a6829c2..b9cf3831 100644 --- a/src/mod_extforward.c +++ b/src/mod_extforward.c @@ -1719,8 +1719,8 @@ static int mod_extforward_network_read (connection *con, union hap_PROXY_hdr hdr; log_error_st *errh; - int rc = hap_PROXY_recv(con->fd, &hdr, - con->dst_addr.plain.sa_family, SOCK_STREAM); + const int family = sock_addr_get_family(&con->dst_addr); + int rc = hap_PROXY_recv(con->fd, &hdr, family, SOCK_STREAM); switch (rc) { case 2: rc = mod_extforward_hap_PROXY_v2(con, &hdr); break; case 1: rc = mod_extforward_hap_PROXY_v1(con, &hdr); break; |