diff options
author | Christian Pointner <equinox@anytun.org> | 2009-01-31 02:17:44 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-01-31 02:17:44 +0000 |
commit | 0c834b28bf391056ebbd2e84e64062b902f936ed (patch) | |
tree | 3fe3b898307484bff35625c88710cc62ade41109 /src/deviceConfig.hpp | |
parent | moved to new handling if ifconfig parameters (more windows friendly) (diff) |
ported new -n functionality to windows (now using new tun ioctl)
Diffstat (limited to 'src/deviceConfig.hpp')
-rw-r--r-- | src/deviceConfig.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 != "") |