summaryrefslogtreecommitdiff
path: root/service/OneService.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@zerotier.com>2017-04-20 10:21:40 -0700
committerAdam Ierymenko <adam.ierymenko@zerotier.com>2017-04-20 10:21:40 -0700
commitba0d73d102e09b6d60f1d677b1e5472a25c08d42 (patch)
treeaf99fe3655fdc25864bc98556b73797e050ac7f4 /service/OneService.cpp
parentd3ecd1d670a77a260a2f9a62175e30e8611f58a7 (diff)
downloadinfinitytier-ba0d73d102e09b6d60f1d677b1e5472a25c08d42.tar.gz
infinitytier-ba0d73d102e09b6d60f1d677b1e5472a25c08d42.zip
Windows build fixes.
Diffstat (limited to 'service/OneService.cpp')
-rw-r--r--service/OneService.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp
index 5f2adfe3..a9185eea 100644
--- a/service/OneService.cpp
+++ b/service/OneService.cpp
@@ -1530,7 +1530,8 @@ public:
json &controllerDbHttpPath = settings["controllerDbHttpPath"];
if ((controllerDbHttpHost.is_string())&&(controllerDbHttpPort.is_number())) {
_controllerDbPath = "http://";
- _controllerDbPath.append(controllerDbHttpHost);
+ std::string h = controllerDbHttpHost;
+ _controllerDbPath.append(h);
char dbp[128];
Utils::snprintf(dbp,sizeof(dbp),"%d",(int)controllerDbHttpPort);
_controllerDbPath.push_back(':');