aboutsummaryrefslogtreecommitdiff
path: root/tun.c
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2010-07-22 22:30:27 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-07-22 22:30:27 +0200
commitc70135d8ed31d133f2fb085bee01db8ad26d7fec (patch)
tree6b1edab6b87bd4c0d5b4aeca747232e524d28b36 /tun.c
parentAdded win/build_exe.py script, which is similar to (diff)
parentFixed client hang when server don't PUSH (aka the NO_SOUP_FOR_YOU patch) (diff)
downloadopenvpn-c70135d8ed31d133f2fb085bee01db8ad26d7fec.tar.xz
Merge branch 'bugfix2.1' into beta2.2
Conflicts: openvpn.8 - New option descriped (--register-dns) Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Diffstat (limited to '')
-rw-r--r--tun.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/tun.c b/tun.c
index b05fcf8..07e4c4e 100644
--- a/tun.c
+++ b/tun.c
@@ -860,26 +860,15 @@ do_ifconfig (struct tuntap *tt,
ifconfig_remote_netmask,
tun_mtu
);
- else {
- if (tt->topology == TOP_SUBNET)
- argv_printf (&argv,
- "%s %s %s netmask %s mtu %d up",
+ else
+ argv_printf (&argv,
+ "%s %s %s netmask %s mtu %d up",
IFCONFIG_PATH,
actual,
ifconfig_local,
ifconfig_remote_netmask,
tun_mtu
);
- else
- argv_printf (&argv,
- "%s %s %s netmask %s mtu %d up",
- IFCONFIG_PATH,
- actual,
- ifconfig_local,
- ifconfig_remote_netmask,
- tun_mtu
- );
- }
argv_msg (M_INFO, &argv);
openvpn_execve_check (&argv, es, S_FATAL, "FreeBSD ifconfig failed");