diff options
author | Lee Salzman <[email protected]> | 2013-11-17 20:19:17 +0200 |
---|---|---|
committer | Lee Salzman <[email protected]> | 2013-11-17 20:19:17 +0200 |
commit | d45b44f2b537d25442dd7734c789850b316450d6 (patch) | |
tree | d464a594eb973eaa1f93d210a158fd78d1e2f27c /protocol.c | |
parent | 970ee420410260088190ec0078e1e69176953d97 (diff) | |
download | enet-d45b44f2b537d25442dd7734c789850b316450d6.tar.gz enet-d45b44f2b537d25442dd7734c789850b316450d6.zip |
allow loopback connections
Diffstat (limited to 'protocol.c')
-rw-r--r-- | protocol.c | 3 |
1 files changed, 2 insertions, 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) |