mirror of
https://github.com/lsalzman/enet
synced 2024-11-21 06:25:59 -07:00
allow loopback connections
This commit is contained in:
parent
970ee42041
commit
d45b44f2b5
1 changed files with 2 additions and 1 deletions
|
@ -297,7 +297,8 @@ enet_protocol_handle_connect (ENetHost * host, ENetProtocolHeader * header, ENet
|
|||
peer = currentPeer;
|
||||
}
|
||||
else
|
||||
if (currentPeer -> address.host == host -> receivedAddress.host)
|
||||
if (currentPeer -> state != ENET_PEER_STATE_CONNECTING &&
|
||||
currentPeer -> address.host == host -> receivedAddress.host)
|
||||
{
|
||||
if (currentPeer -> address.port == host -> receivedAddress.port &&
|
||||
currentPeer -> connectID == command -> connect.connectID)
|
||||
|
|
Loading…
Reference in a new issue