MCPcopy Create free account
hub / github.com/ddnet/ddnet / RconAuthIfPossible

Method RconAuthIfPossible

src/game/client/components/local_server.cpp:97–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void CLocalServer::RconAuthIfPossible()
98{
99 if(!IsServerRunning() ||
100 m_aRconPassword[0] == '\0' ||
101 !net_addr_is_local(&Client()->ServerAddress()))
102 {
103 return;
104 }
105 Client()->RconAuth(DEFAULT_SAVED_RCON_USER, m_aRconPassword, g_Config.m_ClDummy);
106}

Callers 1

OnConnectedMethod · 0.80

Calls 4

net_addr_is_localFunction · 0.85
ServerAddressMethod · 0.80
RconAuthMethod · 0.80
ClientFunction · 0.50

Tested by

no test coverage detected