summaryrefslogtreecommitdiff
path: root/tcpfwd.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2012-05-09 21:09:34 +0800
committerMatt Johnston <matt@ucc.asn.au>2012-05-09 21:09:34 +0800
commit1984aabc950904a9717735ae82b0bbf7d89d3478 (patch)
tree67514df54535a180f6b5eb3753983556696ebff4 /tcpfwd.h
parentf4c4ca64a827661a392749a0684e59ba1556447e (diff)
downloaddropbear-1984aabc950904a9717735ae82b0bbf7d89d3478.tar.gz
Server shouldn't return "localhost" in response to -R forward connections
if that wasn't what the client requested.
Diffstat (limited to 'tcpfwd.h')
-rw-r--r--tcpfwd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tcpfwd.h b/tcpfwd.h
index c33e853..749e1cb 100644
--- a/tcpfwd.h
+++ b/tcpfwd.h
@@ -39,6 +39,8 @@ struct TCPListener {
* 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;