diff options
author | Christian Pointner <equinox@anytun.org> | 2009-01-21 00:07:07 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-01-21 00:07:07 +0000 |
commit | fd7e04ea8b40270c4181c6910cf4ca1437c68cad (patch) | |
tree | b78eec0f0a75149a6462bd25e7e8ee29b8b95dce /src/deviceConfig.hpp | |
parent | safer handling of registry functions (diff) |
tun mode works now on windows
Diffstat (limited to 'src/deviceConfig.hpp')
-rw-r--r-- | src/deviceConfig.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 != "") |