mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Remove hacky security against rcon spoofing because we have a better one now (client-side)
This commit is contained in:
parent
91df0a2af0
commit
a93e7710e1
|
@ -443,14 +443,6 @@ void CClient::Rcon(const char *pCmd)
|
|||
{
|
||||
CServerInfo Info;
|
||||
GetServerInfo(&Info);
|
||||
if(RconAuthed() && IsDDNet(&Info))
|
||||
{ // Against IP spoofing on DDNet servers
|
||||
CMsgPacker Msg(NETMSG_RCON_AUTH);
|
||||
Msg.AddString("", 32);
|
||||
Msg.AddString(m_RconPassword, 32);
|
||||
Msg.AddInt(1);
|
||||
SendMsgEx(&Msg, MSGFLAG_VITAL);
|
||||
}
|
||||
|
||||
CMsgPacker Msg(NETMSG_RCON_CMD);
|
||||
Msg.AddString(pCmd, 256);
|
||||
|
|
Loading…
Reference in a new issue