Mercurial > dropbear
comparison svr-tcpfwd.c @ 1252:3f4af834314d
Merge branch 'fperrad-20151231_indent'
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 15 Mar 2016 21:41:22 +0800 |
parents | 52a456a3add0 |
children | 9169e4e7cbee |
comparison
equal
deleted
inserted
replaced
1248:739b3909c499 | 1252:3f4af834314d |
---|---|
192 tcpinfo->chantype = &svr_chan_tcpremote; | 192 tcpinfo->chantype = &svr_chan_tcpremote; |
193 tcpinfo->tcp_type = forwarded; | 193 tcpinfo->tcp_type = forwarded; |
194 | 194 |
195 tcpinfo->request_listenaddr = request_addr; | 195 tcpinfo->request_listenaddr = request_addr; |
196 if (!opts.listen_fwd_all || (strcmp(request_addr, "localhost") == 0) ) { | 196 if (!opts.listen_fwd_all || (strcmp(request_addr, "localhost") == 0) ) { |
197 /* NULL means "localhost only" */ | 197 /* NULL means "localhost only" */ |
198 tcpinfo->listenaddr = NULL; | 198 tcpinfo->listenaddr = NULL; |
199 } | 199 } |
200 else | 200 else |
201 { | 201 { |
202 tcpinfo->listenaddr = request_addr; | 202 tcpinfo->listenaddr = request_addr; |