net: additional log_d for IPv4 -> IPv6 conversion
authorRobert Swiecki <robert@swiecki.net>
Mon, 19 Jun 2017 21:57:31 +0000 (23:57 +0200)
committerRobert Swiecki <robert@swiecki.net>
Mon, 19 Jun 2017 21:57:31 +0000 (23:57 +0200)
net.c

diff --git a/net.c b/net.c
index 08a110a045947931d78acc5545916091340bfab6..3ba5de8d08ea2b874629300bb87171086c688270 100644 (file)
--- a/net.c
+++ b/net.c
@@ -199,6 +199,7 @@ int netGetRecvSocket(const char *bindhost, int port)
        snprintf(bindaddr, sizeof(bindaddr), "%s", bindhost);
        struct in_addr in4a;
        if (inet_pton(AF_INET, bindaddr, &in4a) == 1) {
+               LOG_D("Converting bind IPv4:'%s' to IPv6:'::ffff:%s'", bindhost, bindhost);
                snprintf(bindaddr, sizeof(bindaddr), "::ffff:%s", bindhost);
        }