Use InvalidateCache in the sockaddrs overload of OnSetClientIP.

This was done to the string variant in d3b82b2f7f.
This commit is contained in:
Peter Powell 2017-10-22 23:51:15 +01:00
parent 473d990d62
commit 52de083afc

View File

@ -1008,8 +1008,7 @@ bool User::SetClientIP(const char* sip, bool recheck_eline)
void User::SetClientIP(const irc::sockets::sockaddrs& sa, bool recheck_eline)
{
cachedip.clear();
cached_hostip.clear();
this->InvalidateCache();
memcpy(&client_sa, &sa, sizeof(irc::sockets::sockaddrs));
}