diff options
-rw-r--r-- | tcp-accept.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tcp-accept.c b/tcp-accept.c index 92d4afe..c133535 100644 --- a/tcp-accept.c +++ b/tcp-accept.c @@ -82,6 +82,9 @@ static void tcp_acceptor(struct Listener *listener, int sock) { port = tcpinfo->listenport; } + if (addr == NULL) { + addr = "localhost"; + } buf_putstring(ses.writepayload, addr, strlen(addr)); buf_putint(ses.writepayload, port); |