chiark
/
gitweb
/
~mdw
/
preload-hacks
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d7cba3
)
noip.c (do_implicit_bind): Report the local address that we chose.
author
Mark Wooding
<mdw@distorted.org.uk>
Wed, 6 Jun 2018 19:30:04 +0000
(20:30 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Wed, 6 Jun 2018 19:30:04 +0000
(20:30 +0100)
noip.c
patch
|
blob
|
blame
|
history
diff --git
a/noip.c
b/noip.c
index 66c6ba5aab2e8db701c21602e98ec7253bde42f5..1af57686353fa901bb1541e0dd99da960f0250ab 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);
}