From 0c834b28bf391056ebbd2e84e64062b902f936ed Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 31 Jan 2009 02:17:44 +0000 Subject: ported new -n functionality to windows (now using new tun ioctl) --- src/deviceConfig.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/deviceConfig.hpp') diff --git a/src/deviceConfig.hpp b/src/deviceConfig.hpp index 3e6c912..3c3fd41 100644 --- a/src/deviceConfig.hpp +++ b/src/deviceConfig.hpp @@ -68,8 +68,8 @@ public: else if(dev_type == "tap") type_ = TYPE_TAP; - if(type_ == TYPE_TUN && (ifcfg_lp == "" || ifcfg_rnmp == "")) - throw std::runtime_error("Device type tun requires ifconfig parameters (--ifconfig)"); + if(type_ == TYPE_TUN && ifcfg_addr == "") + throw std::runtime_error("Device type tun requires ifconfig parameter (--ifconfig)"); #endif if(ifcfg_addr != "") -- cgit v1.2.3