diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-09-03 15:39:05 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-09-03 15:39:05 -0700 |
| commit | eebcf08084097fc7cd8703a11686e66157fa8efa (patch) | |
| tree | 8c866efeb6f925f4cd3fa1881990779f17b2015f /service/ControlPlane.cpp | |
| parent | 01aa469591019d0412cd6714312467823aaacea9 (diff) | |
| download | infinitytier-eebcf08084097fc7cd8703a11686e66157fa8efa.tar.gz infinitytier-eebcf08084097fc7cd8703a11686e66157fa8efa.zip | |
Tweaks to new Path code for dual-stack operation, and other fixes.
Diffstat (limited to 'service/ControlPlane.cpp')
| -rw-r--r-- | service/ControlPlane.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/ControlPlane.cpp b/service/ControlPlane.cpp index 5ed6b8b7..03c5942d 100644 --- a/service/ControlPlane.cpp +++ b/service/ControlPlane.cpp @@ -183,14 +183,14 @@ static std::string _jsonEnumerate(unsigned int depth,const ZT_PeerPhysicalPath * "%s\t\"address\": \"%s\",\n" "%s\t\"lastSend\": %llu,\n" "%s\t\"lastReceive\": %llu,\n" - "%s\t\"active\": %s,\n" + "%s\t\"active\": true,\n" "%s\t\"preferred\": %s,\n" "%s\t\"trustedPathId\": %llu\n" "%s}", prefix,_jsonEscape(reinterpret_cast<const InetAddress *>(&(pp[i].address))->toString()).c_str(), prefix,pp[i].lastSend, prefix,pp[i].lastReceive, - prefix,(pp[i].active == 0) ? "false" : "true", + prefix, prefix,(pp[i].preferred == 0) ? "false" : "true", prefix,pp[i].trustedPathId, prefix); |
