summaryrefslogtreecommitdiff
path: root/node/Node.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@zerotier.com>2013-08-12 16:57:34 -0400
committerAdam Ierymenko <adam.ierymenko@zerotier.com>2013-08-12 16:57:34 -0400
commit5076c75b079fe02c843ca85dc20821e468b2d7b8 (patch)
tree0483b8122b9e627b1237e6d8e63e1c48c31497ee /node/Node.cpp
parent36af3d92ecb4148a74c14896f5b6a9dcea0c1700 (diff)
downloadinfinitytier-5076c75b079fe02c843ca85dc20821e468b2d7b8.tar.gz
infinitytier-5076c75b079fe02c843ca85dc20821e468b2d7b8.zip
More Windows port work.
Diffstat (limited to 'node/Node.cpp')
-rw-r--r--node/Node.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/node/Node.cpp b/node/Node.cpp
index 2cacab56..f01f4659 100644
--- a/node/Node.cpp
+++ b/node/Node.cpp
@@ -343,7 +343,11 @@ Node::ReasonForTermination Node::run()
Utils::rm((_r->homePath + ZT_PATH_SEPARATOR_S + "thisdeviceismine"));
// Make sure networks.d exists
+#ifdef __WINDOWS__
+ CreateDirectory((_r->homePath + ZT_PATH_SEPARATOR_S + "networks.d").c_str(),NULL);
+#else
mkdir((_r->homePath + ZT_PATH_SEPARATOR_S + "networks.d").c_str(),0700);
+#endif
// Load or generate config authentication secret
std::string configAuthTokenPath(_r->homePath + ZT_PATH_SEPARATOR_S + "authtoken.secret");