summaryrefslogtreecommitdiff
path: root/node/Node.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@zerotier.com>2013-08-24 17:10:34 -0400
committerAdam Ierymenko <adam.ierymenko@zerotier.com>2013-08-24 17:10:34 -0400
commite0bdc021395fed6a6931d973b1f780c3a0c7de83 (patch)
tree9934c79a2a5a5114e0c14bc583819f1031fbf6c5 /node/Node.cpp
parent6d7b1c1e5fff7ffd8deed5716a7c9deda63293cb (diff)
downloadinfinitytier-e0bdc021395fed6a6931d973b1f780c3a0c7de83.tar.gz
infinitytier-e0bdc021395fed6a6931d973b1f780c3a0c7de83.zip
Docs, Node picks a default home folder if created with NULL as its home path, and add binary tap drivers (self-signed for now).
Diffstat (limited to 'node/Node.cpp')
-rw-r--r--node/Node.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/node/Node.cpp b/node/Node.cpp
index bb68cdaf..1884f9ce 100644
--- a/node/Node.cpp
+++ b/node/Node.cpp
@@ -258,8 +258,9 @@ Node::Node(const char *hp)
{
_NodeImpl *impl = (_NodeImpl *)_impl;
- impl->renv.homePath = hp;
-
+ if (hp)
+ impl->renv.homePath = hp;
+ else impl->renv.homePath = ZT_DEFAULTS.defaultHomePath;
impl->reasonForTermination = Node::NODE_RUNNING;
impl->started = false;
impl->running = false;