summaryrefslogtreecommitdiff
path: root/src/tcpproxy.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2010-11-28 22:55:24 +0000
committerChristian Pointner <equinox@spreadspace.org>2010-11-28 22:55:24 +0000
commit174a9f39da1f09c6ffd9c6f0b3a6a42da5ec4163 (patch)
tree74bb2be118291b2df2ad7d18d33a6816626a32e6 /src/tcpproxy.c
parentfirst minial version working (diff)
source address to connect from can now be specified
git-svn-id: https://svn.spreadspace.org/tcpproxy/trunk@13 e61f0598-a718-4e21-a8f0-0aadfa62ad6b
Diffstat (limited to 'src/tcpproxy.c')
-rw-r--r--src/tcpproxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tcpproxy.c b/src/tcpproxy.c
index 6a55ea1..2abf6e6 100644
--- a/src/tcpproxy.c
+++ b/src/tcpproxy.c
@@ -145,7 +145,7 @@ int main(int argc, char* argv[])
log_close();
exit(-1);
}
- ret = listener_add(&listeners, opt.local_addr_, opt.local_port_, opt.remote_addr_, opt.remote_port_);
+ ret = listener_add(&listeners, opt.local_addr_, opt.local_port_, opt.remote_addr_, opt.remote_port_, opt.source_addr_);
if(ret) {
listener_clear(&listeners);
options_clear(&opt);