summaryrefslogtreecommitdiff
path: root/src/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/options.cpp')
-rw-r--r--src/options.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/options.cpp b/src/options.cpp
index 3b7e468..798504b 100644
--- a/src/options.cpp
+++ b/src/options.cpp
@@ -66,7 +66,7 @@ Options::Options() : key_(u_int32_t(0)), salt_(u_int32_t(0))
remote_sync_addr_ = "";
remote_addr_ = "";
remote_port_ = 4444;
- dev_name_ = "tun";
+ dev_name_ = "";
dev_type_ = "";
ifconfig_param_local_ = "";
ifconfig_param_remote_netmask_ = "";
@@ -194,6 +194,9 @@ bool Options::parse(int argc, char* argv[])
if((cipher_ != "null" || auth_algo_ != "null") && kd_prf_ == "null")
kd_prf_ = "aes-ctr";
+ if(dev_name_ == "" && dev_type_ == "")
+ dev_type_ = "tun";
+
while(!host_port_queue.empty())
{
std::stringstream tmp_stream(host_port_queue.front());