#78, print server tunnel ip

This commit is contained in:
Erik Ekman
2009-09-19 08:24:59 +00:00
committed by Erik Ekman
parent 01e558022e
commit 0cdd537819
2 changed files with 3 additions and 0 deletions

View File

@@ -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");