forked from Mirrors/openclonk
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
parent
b595e96b83
commit
f9c97e91f0
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue