mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-12-20 08:27:11 +01:00
first changes
This commit is contained in:
@@ -132,7 +132,7 @@ void ServicePort::onAccept(Connection_ptr connection, const boost::system::error
|
||||
}
|
||||
}
|
||||
|
||||
Protocol_ptr ServicePort::make_protocol(NetworkMessage& msg, const Connection_ptr& connection) const
|
||||
Protocol_ptr ServicePort::make_protocol(bool checksummed, NetworkMessage& msg, const Connection_ptr& connection) const
|
||||
{
|
||||
uint8_t protocolID = msg.getByte();
|
||||
for (auto& service : services) {
|
||||
@@ -140,7 +140,9 @@ Protocol_ptr ServicePort::make_protocol(NetworkMessage& msg, const Connection_pt
|
||||
continue;
|
||||
}
|
||||
|
||||
return service->make_protocol(connection);
|
||||
if ((checksummed && service->is_checksummed()) || !service->is_checksummed()) {
|
||||
return service->make_protocol(connection);
|
||||
}
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user