diff session.h @ 572:8fd0ac8c8cab

Move remotehost into svr_ses structure since we can't look it up once we've forked (the connection socket has been closed). Fixes inetd mode.
author Matt Johnston <matt@ucc.asn.au>
date Sat, 05 Sep 2009 11:40:00 +0000
parents 005530560594
children f9b5dc0cba61
line wrap: on
line diff
--- a/session.h	Wed Sep 02 15:17:14 2009 +0000
+++ b/session.h	Sat Sep 05 11:40:00 2009 +0000
@@ -211,6 +211,9 @@
 	/* The numeric address they connected from, used for logging */
 	char * addrstring;
 
+	/* The resolved remote address, used for lastlog etc */
+	char *remotehost;
+
 #ifdef __uClinux__
 	pid_t server_pid;
 #endif