mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-14 09:58:50 +08:00
Change checksum enabled condition
This commit is contained in:
parent
ac8c289296
commit
02ee6d8cd1
@ -449,7 +449,7 @@ static void scanPackets( TransportData* transport, uint8_t*& unprocessed_begin,
|
||||
uint8_t* p = unprocessed_begin;
|
||||
|
||||
bool checksumEnabled = true;
|
||||
if (!g_network->isSimulated() && transport->localAddress.isTLS() && peerAddress.isTLS()) {
|
||||
if (transport->localAddress.isTLS() || peerAddress.isTLS()) {
|
||||
checksumEnabled = false;
|
||||
}
|
||||
|
||||
@ -777,7 +777,7 @@ static PacketID sendPacket( TransportData* self, ISerializeSource const& what, c
|
||||
return (PacketID)NULL;
|
||||
} else {
|
||||
bool checksumEnabled = true;
|
||||
if (!g_network->isSimulated() && self->localAddress.isTLS() && destination.address.isTLS()) {
|
||||
if (self->localAddress.isTLS() || destination.address.isTLS()) {
|
||||
checksumEnabled = false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user