Mercurial > dropbear
comparison svr-tcpfwd.c @ 1251:52a456a3add0
Merge branch '20151231_indent' of https://github.com/fperrad/dropbear into fperrad-20151231_indent
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 15 Mar 2016 21:41:06 +0800 |
parents | 888e3d17e962 2bb4c662d1c2 |
children | 9169e4e7cbee |
comparison
equal
deleted
inserted
replaced
1248:739b3909c499 | 1251:52a456a3add0 |
---|---|
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; |