Allow adding connections from other addresses

Forcing a static address does not work for IPv6 where everyone has
multiple addresses that change over time. For example, adding a new
connection would fail if the preferred privacy address changes during
a game.
ipv6
Lukas Werling 2017-01-15 17:43:32 +01:00
parent b595e96b83
commit f9c97e91f0
1 changed files with 0 additions and 3 deletions

View File

@ -1236,9 +1236,6 @@ bool C4Network2::CheckConn(const C4ClientCore &CCore, C4Network2IOConnection *pC
// check core
if (CCore.getDiffLevel(pClient->getCore()) > C4ClientCoreDL_IDMatch)
{ *szReply = "wrong client core"; return false; }
// check address
if (pClient->isConnected() && pClient->getMsgConn()->getPeerAddr() != pConn->getPeerAddr())
{ *szReply = "wrong address"; return false; }
// accept
return true;
}