From: Mark Wooding Date: Wed, 6 Jun 2018 19:30:04 +0000 (+0100) Subject: noip.c (do_implicit_bind): Report the local address that we chose. X-Git-Tag: 1.2.0~19 X-Git-Url: https://git.distorted.org.uk/~mdw/preload-hacks/commitdiff_plain/435982655910dc54c983b02e5045a7bd5463f11e noip.c (do_implicit_bind): Report the local address that we chose. --- diff --git a/noip.c b/noip.c index 66c6ba5..1af5768 100644 --- 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); }