diff options
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 != "") |