aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;