aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <0xdec05eba@gmail.com>2018-10-17 06:05:04 +0200
committerdec05eba <0xdec05eba@gmail.com>2018-10-17 06:05:04 +0200
commita4e128e5e46c9fcf00fd874c8386988f9d3b73fa (patch)
tree7424ec7e1c297e1f6d7fe982cbfd2808940f43f8 /src
parent41cfccfa042fedc7395a35131f2ad117ca893e42 (diff)
Fix deserialization of nodes
Diffstat (limited to 'src')
-rw-r--r--src/DirectConnection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DirectConnection.cpp b/src/DirectConnection.cpp
index e41a4a5..f8ff0f2 100644
--- a/src/DirectConnection.cpp
+++ b/src/DirectConnection.cpp
@@ -410,7 +410,7 @@ namespace sibs
std::shared_ptr<DirectConnectionPeer> peer = std::make_shared<DirectConnectionPeer>();
peer->address.address.sin_family = deserializer.extract<u32>();
peer->address.address.sin_addr.s_addr = deserializer.extract<u32>();
- peer->address.address.sin_port = deserializer.extract<u32>();
+ peer->address.address.sin_port = deserializer.extract<u16>();
result.push_back(peer);
}
return result;