summaryrefslogtreecommitdiff
path: root/src/uanytun.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-12-28 02:39:57 +0000
committerChristian Pointner <equinox@anytun.org>2008-12-28 02:39:57 +0000
commit03e65a0b2401f63c8b10a1395def5c7859280aba (patch)
tree1f1643f21653cfca58f3aa5b48871ac963114cdd /src/uanytun.c
parentfixed memory error und udp_close (diff)
added enpoint to string functions
Diffstat (limited to 'src/uanytun.c')
-rw-r--r--src/uanytun.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/uanytun.c b/src/uanytun.c
index 27d1880..881ba5b 100644
--- a/src/uanytun.c
+++ b/src/uanytun.c
@@ -71,6 +71,10 @@ int main(int argc, char* argv[])
exit(-1);
}
+ udp_set_remote(sock, "anycast.anytun.org", "4444");
+ char* remote_string = udp_get_remote_end_string(sock);
+ log_printf(INFO, "set remote end to: %s", remote_string);
+ free(remote_string);
log_printf(INFO, "entering main loop");
u_int8_t buf[1600];