diff options
Diffstat (limited to 'Src/Modules/tcp.c')
-rw-r--r-- | Src/Modules/tcp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/Modules/tcp.c b/Src/Modules/tcp.c index 96dde66e3..58ab8c090 100644 --- a/Src/Modules/tcp.c +++ b/Src/Modules/tcp.c @@ -433,7 +433,9 @@ bin_ztcp(char *nam, char **args, Options ops, int func) if (bind(sess->fd, (struct sockaddr *)&sess->sock.in, sizeof(struct sockaddr_in))) { - zwarnnam(nam, "could not bind to %s: %e", "0.0.0.0", errno); + char buf[DIGBUFSIZE]; + convbase(buf, (zlong)lport, 10); + zwarnnam(nam, "could not bind to port %s: %e", buf, errno); tcp_close(sess); return 1; } |