diff options
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); |