From 0cdd5378196e25aa7f27ef2415529c6dfa462e82 Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Sat, 19 Sep 2009 08:24:59 +0000 Subject: [PATCH] #78, print server tunnel ip --- CHANGELOG | 1 + src/client.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index af5d070..3c27968 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -23,6 +23,7 @@ CHANGES: misc at mandriva.org. Fixes #70. - Allow password to be set via environment variable, fixes #77. Based on patch by logix. + - Client now prints server tunnel IP, fixes #78. Patch by logix. 2009-06-01: 0.5.2 "WifiFree" - Fixed client segfault on OS X, #57 diff --git a/src/client.c b/src/client.c index bd516cf..6585d4c 100644 --- a/src/client.c +++ b/src/client.c @@ -742,6 +742,8 @@ handshake_login(int dns_fd, int seed) client[64] = 0; if (tun_setip(client, netmask) == 0 && tun_setmtu(mtu) == 0) { + + fprintf(stderr, "Server tunnel IP is %s\n", server); return 0; } else { errx(4, "Failed to set IP and MTU");