diff tcpfwd.h @ 675:dfdb9d9189ff

Server shouldn't return "localhost" in response to -R forward connections if that wasn't what the client requested.
author Matt Johnston <matt@ucc.asn.au>
date Wed, 09 May 2012 21:09:34 +0800
parents 8c737cd7c1af
children 04ede40a529a
line wrap: on
line diff
--- a/tcpfwd.h	Wed May 09 20:34:55 2012 +0800
+++ b/tcpfwd.h	Wed May 09 21:09:34 2012 +0800
@@ -39,6 +39,8 @@
 	 * localhost, or a normal interface name. */
 	unsigned char *listenaddr;
 	unsigned int listenport;
+	/* The address that the remote host asked to listen on */
+	unsigned char *request_listenaddr;;
 
 	const struct ChanType *chantype;
 	enum {direct, forwarded} tcp_type;