diff options
author | Damien Miller <djm@mindrot.org> | 2013-10-24 12:02:02 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2013-10-24 12:02:02 +0200 |
commit | 5ecb41629860687b145be63b8877fabb6bae5eda (patch) | |
tree | f340c995d97dc39134596cbe946c63c985e69783 /sshd.c | |
parent | - dtucker@cvs.openbsd.org 2013/10/23 05:40:58 (diff) | |
download | openssh-5ecb41629860687b145be63b8877fabb6bae5eda.tar.xz openssh-5ecb41629860687b145be63b8877fabb6bae5eda.zip |
- djm@cvs.openbsd.org 2013/10/23 23:35:32
[sshd.c]
include local address and port in "Connection from ..." message (only
shown at loglevel>=verbose)
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 @@ -2040,7 +2040,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 |