diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2013-10-23 23:35:33 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2013-10-23 23:35:33 +0000 |
commit | 49ecff3f54ab107b2252ca6a3c6ad0f3e2e773fb (patch) | |
tree | 91d3c5ac464ebd5e3247b7b8a785679de6314307 | |
parent | ae275dd2634b18c555211843f9b06697a7ba6373 (diff) |
include local address and port in "Connection from ..." message (only
shown at loglevel>=verbose)
-rw-r--r-- | usr.bin/ssh/sshd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c index a4a680c23a1..006a90a529e 100644 --- a/usr.bin/ssh/sshd.c +++ b/usr.bin/ssh/sshd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshd.c,v 1.408 2013/10/17 22:08:04 djm Exp $ */ +/* $OpenBSD: sshd.c,v 1.409 2013/10/23 23:35:32 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -1920,7 +1920,9 @@ main(int ac, char **av) #endif /* LIBWRAP */ /* Log the connection. */ - verbose("Connection from %.500s port %d", remote_ip, remote_port); + verbose("Connection from %s port %d on %s port %d", + remote_ip, remote_port, + get_local_ipaddr(sock_in), get_local_port()); /* * We don't want to listen forever unless the other side |