2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-29 08:05:50 +03:00
This commit is contained in:
s1lent 2017-05-21 18:08:28 +07:00
parent 5981a4c544
commit 8276436809
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C

View File

@ -1341,7 +1341,7 @@ bool Proxy::CheckChallenge(NetAddress *from, unsigned int challengeNumber)
{
for (auto& it : m_Challenges)
{
if (it.adr.Equal(from)) {
if (from->EqualBase(&it.adr)) {
if (it.challenge == challengeNumber) {
return (m_SystemTime - it.time <= 40);
}