summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bsd/tunDevice.cpp2
-rw-r--r--src/linux/tunDevice.cpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/bsd/tunDevice.cpp b/src/bsd/tunDevice.cpp
index ce2a413..421c1d5 100644
--- a/src/bsd/tunDevice.cpp
+++ b/src/bsd/tunDevice.cpp
@@ -100,6 +100,8 @@ TunDevice::TunDevice(std::string dev_name, std::string dev_type, std::string ifc
else
actual_name_ = dev_name;
+ actual_node_ = device_file;
+
init_post();
if(ifcfg_lp != "" && ifcfg_rnmp != "")
diff --git a/src/linux/tunDevice.cpp b/src/linux/tunDevice.cpp
index b95cb32..2c0618a 100644
--- a/src/linux/tunDevice.cpp
+++ b/src/linux/tunDevice.cpp
@@ -81,6 +81,7 @@ TunDevice::TunDevice(std::string dev_name, std::string dev_type, std::string ifc
msg << "tun/tap device ioctl failed: " << LogErrno(errno);
throw std::runtime_error(msg.str());
}
+ actual_node_ = DEFAULT_DEVICE;
if(ifcfg_lp != "" && ifcfg_rnmp != "")
do_ifconfig();