noip.c (do_implicit_bind): Report the local address that we chose.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 6 Jun 2018 19:30:04 +0000 (20:30 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 6 Jun 2018 19:30:04 +0000 (20:30 +0100)
noip.c

diff --git a/noip.c b/noip.c
index 66c6ba5..1af5768 100644 (file)
--- a/noip.c
+++ b/noip.c
@@ -985,6 +985,8 @@ static int do_implicit_bind(int sk, const struct sockaddr *sa)
   wildcard_address(sa->sa_family, &addr.sa);
 found:
   encode_inet_addr(&sun, &addr.sa, ENCF_FRESH);
+  D( fprintf(stderr, "noip(%d): implicitly binding to %s\n",
+            pid, sun.sun_path); )
   if (real_bind(sk, SA(&sun), SUN_LEN(&sun))) return (-1);
   return (0);
 }