diff options
author | dec05eba <0xdec05eba@gmail.com> | 2018-10-17 06:05:04 +0200 |
---|---|---|
committer | dec05eba <0xdec05eba@gmail.com> | 2018-10-17 06:05:04 +0200 |
commit | a4e128e5e46c9fcf00fd874c8386988f9d3b73fa (patch) | |
tree | 7424ec7e1c297e1f6d7fe982cbfd2808940f43f8 /src | |
parent | 41cfccfa042fedc7395a35131f2ad117ca893e42 (diff) |
Fix deserialization of nodes
Diffstat (limited to 'src')
-rw-r--r-- | src/DirectConnection.cpp | 2 |
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; |