diff options
author | Christian Pointner <equinox@anytun.org> | 2009-02-26 14:37:58 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-02-26 14:37:58 +0000 |
commit | 3916b75f1ef7858101a1020f821115d83f285284 (patch) | |
tree | e01fb0d58403aa08ed9a241de2242ae48696914a /src/uanytun.c | |
parent | added -4 and -6 command line arguments (diff) |
added -4 and -6 switches to udp socket
Diffstat (limited to 'src/uanytun.c')
-rw-r--r-- | src/uanytun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uanytun.c b/src/uanytun.c index 6e276bf..380dca5 100644 --- a/src/uanytun.c +++ b/src/uanytun.c @@ -412,7 +412,7 @@ int main(int argc, char* argv[]) udp_socket_t sock; - ret = udp_init(&sock, opt.local_addr_, opt.local_port_); + ret = udp_init(&sock, opt.local_addr_, opt.local_port_, opt.resolv_addr_type_); if(ret) { log_printf(ERROR, "error on udp_init, exitting"); tun_close(&dev); @@ -428,7 +428,7 @@ int main(int argc, char* argv[]) if(opt.remote_addr_) { - if(!udp_set_remote(&sock, opt.remote_addr_, opt.remote_port_)) { + if(!udp_set_remote(&sock, opt.remote_addr_, opt.remote_port_, opt.resolv_addr_type_)) { char* remote_string = udp_get_remote_end_string(&sock); if(remote_string) { log_printf(NOTICE, "set remote end to: %s", remote_string); |