diff options
author | Christian Pointner <equinox@anytun.org> | 2014-02-13 21:02:43 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2014-02-13 21:02:43 +0000 |
commit | f32ba56f0e81554647c34935862928351df4f7ea (patch) | |
tree | 46c741933d91ac185e89418b11763a0452429dad /src/uanytun.c | |
parent | small refactoring (diff) |
removed useless remote_end_to_string
added rail version vor udp_write
Diffstat (limited to 'src/uanytun.c')
-rw-r--r-- | src/uanytun.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/uanytun.c b/src/uanytun.c index 6ebd721..75d21ce 100644 --- a/src/uanytun.c +++ b/src/uanytun.c @@ -380,15 +380,8 @@ int main(int argc, char* argv[]) exit(ret); } - if(opt.remote_addr_) { - if(!udp_resolv_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); - free(remote_string); - } - } - } + if(opt.remote_addr_) + udp_resolv_remote(&sock, opt.remote_addr_, opt.remote_port_, opt.resolv_addr_type_); FILE* pid_file = NULL; |