diff options
author | Damien Miller <djm@mindrot.org> | 2013-10-24 21:02:02 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2013-10-24 21:02:02 +1100 |
commit | 5ecb41629860687b145be63b8877fabb6bae5eda (patch) | |
tree | f340c995d97dc39134596cbe946c63c985e69783 /sshd.c | |
parent | 03bf2e61ad6ac59a362a1f11b105586cb755c147 (diff) |
- 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 @@ | |||
1 | /* $OpenBSD: sshd.c,v 1.408 2013/10/17 22:08:04 djm Exp $ */ | 1 | /* $OpenBSD: sshd.c,v 1.409 2013/10/23 23:35:32 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -2040,7 +2040,9 @@ main(int ac, char **av) | |||
2040 | #endif /* LIBWRAP */ | 2040 | #endif /* LIBWRAP */ |
2041 | 2041 | ||
2042 | /* Log the connection. */ | 2042 | /* Log the connection. */ |
2043 | verbose("Connection from %.500s port %d", remote_ip, remote_port); | 2043 | verbose("Connection from %s port %d on %s port %d", |
2044 | remote_ip, remote_port, | ||
2045 | get_local_ipaddr(sock_in), get_local_port()); | ||
2044 | 2046 | ||
2045 | /* | 2047 | /* |
2046 | * We don't want to listen forever unless the other side | 2048 | * We don't want to listen forever unless the other side |