diff svr-session.c @ 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 a98a2138364a
line wrap: on
line diff
--- a/svr-session.c	Wed Sep 02 15:17:14 2009 +0000
+++ b/svr-session.c	Sat Sep 05 11:40:00 2009 +0000
@@ -101,6 +101,9 @@
 	m_free(host);
 	m_free(port);
 
+	get_socket_address(ses.sock_in, NULL, NULL, 
+			&svr_ses.remotehost, NULL, 1);
+
 	/* set up messages etc */
 	ses.remoteclosed = svr_remoteclosed;