From cf38f85e088f7c1bf9338abadee088ddea4d9d92 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 14 Sep 2019 14:05:05 -0700 Subject: [PATCH] Be more lenient with the expected peer address for multi-homed hosts --- protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol.c b/protocol.c index ecbb52f..d268214 100644 --- a/protocol.c +++ b/protocol.c @@ -1009,7 +1009,7 @@ enet_protocol_handle_incoming_commands (ENetHost * host, ENetEvent * event) if (peer -> state == ENET_PEER_STATE_DISCONNECTED || peer -> state == ENET_PEER_STATE_ZOMBIE || - ! enet_address_equal(& host -> receivedAddress, & peer -> address) || + /* ! enet_address_equal(& host -> receivedAddress, & peer -> address) || */ (peer -> outgoingPeerID < ENET_PROTOCOL_MAXIMUM_PEER_ID && sessionID != peer -> incomingSessionID)) return 0;