mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Don't query JWT token if we connect to localhost
Localhost in many cases implies usage of listen server; these don't require auth on loopback connections.
This commit is contained in:
parent
506134fffb
commit
cbf370019d
@ -218,7 +218,9 @@ bool CClientState::Authenticate(connectparams_t* connectParams) const
|
||||
|
||||
void CClientState::VConnect(CClientState* thisptr, connectparams_t* connectParams)
|
||||
{
|
||||
thisptr->Authenticate(connectParams);
|
||||
if (strncmp(connectParams->netAdr, "localhost", 9) != NULL)
|
||||
thisptr->Authenticate(connectParams);
|
||||
|
||||
CClientState__Connect(thisptr, connectParams);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user