summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@zerotier.com>2015-07-06 17:20:41 -0700
committerAdam Ierymenko <adam.ierymenko@zerotier.com>2015-07-06 17:20:41 -0700
commit84ba365c77fafd9190d258ec364e9e06b9249764 (patch)
tree7901e49faf1319ea09a7ba4f19abafc433b0fcf9 /node
parentf9f4dd52768219e0db5b85e5b6d4568b919176b8 (diff)
downloadinfinitytier-84ba365c77fafd9190d258ec364e9e06b9249764.tar.gz
infinitytier-84ba365c77fafd9190d258ec364e9e06b9249764.zip
Fix bug in direct path push send.
Diffstat (limited to 'node')
-rw-r--r--node/Peer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp
index f5fdf7dd..7c936d4a 100644
--- a/node/Peer.cpp
+++ b/node/Peer.cpp
@@ -256,7 +256,7 @@ void Peer::pushDirectPaths(const RuntimeEnvironment *RR,const std::vector<Path>
outp.append((uint8_t)((p->metric() >= 0) ? ((p->metric() <= 255) ? p->metric() : 255) : 0));
outp.append((uint16_t)0);
outp.append(addressType);
- outp.append((addressType == 4) ? 6 : 18);
+ outp.append((uint8_t)((addressType == 4) ? 6 : 18));
outp.append(p->address().rawIpData(),((addressType == 4) ? 4 : 16));
outp.append((uint16_t)p->address().port());