]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
print ip, not fr_ipaddr_t
authorAlan T. DeKok <aland@freeradius.org>
Fri, 30 Jul 2021 13:24:18 +0000 (09:24 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 30 Jul 2021 13:24:18 +0000 (09:24 -0400)
src/main/tls_listen.c

index 3cc1b6b6c7c3f530ecc14b3b738190b662e78499..f7506a3d2dceb0e35e4a904baa8b96cd14621799 100644 (file)
@@ -273,9 +273,9 @@ static int proxy_protocol_check(rad_listen_t *listener, REQUEST *request)
 
                RDEBUG("(TLS) Received PROXY protocol connection from client %s:%s -> %s:%s, via proxy %s:%u -> %s:%u",
                       argv[0], argv[2], argv[1], argv[3],
-                      inet_ntop(af, &sock->haproxy_src_ipaddr, src_buf, sizeof(src_buf)),
+                      inet_ntop(af, &sock->haproxy_src_ipaddr.ipaddr, src_buf, sizeof(src_buf)),
                       sock->haproxy_src_port,
-                      inet_ntop(af, &sock->haproxy_dst_ipaddr, dst_buf, sizeof(dst_buf)),
+                      inet_ntop(af, &sock->haproxy_dst_ipaddr.ipaddr, dst_buf, sizeof(dst_buf)),
                       sock->haproxy_dst_port);
        }