From fd7e04ea8b40270c4181c6910cf4ca1437c68cad Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 21 Jan 2009 00:07:07 +0000 Subject: tun mode works now on windows --- src/deviceConfig.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/deviceConfig.hpp') diff --git a/src/deviceConfig.hpp b/src/deviceConfig.hpp index a3dbe74..acca46e 100644 --- a/src/deviceConfig.hpp +++ b/src/deviceConfig.hpp @@ -65,6 +65,9 @@ public: type_ = TYPE_TUN; 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)"); #endif if(ifcfg_lp != "") -- cgit v1.2.3