diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-10-17 06:05:04 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-18 22:56:48 +0200 |
commit | 6ddb86ed98cf20531879f11c2e3148cb933e0616 (patch) | |
tree | f4cd7bd83dc95dd7a83852740d2c48dd27699948 /src | |
parent | a259a23c388866d32ca63235591d81b18689f42a (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; |