OnRconConnection
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnRconConnection( IPAddress ClientIpAddress )
{
Puts( "OnRconConnection works!" );
}
csharp
private void OnRconConnection( IPAddress Address )
{
Puts( "OnRconConnection works!" );
}
Location
- Facepunch.Rcon.Listener/<>c__DisplayClass27_0::<Start>b__0(Fleck.IWebSocketConnection socket)
- Facepunch.RCon/RConListener::ProcessConnections()
csharp
//---
{
Debug.Log(string.Format("RCON: CRITICAL - Banned IP {0} supplied the correct password. Access was still denied.", <>c__DisplayClass27_.socket.ConnectionInfo.ClientIpAddress));
}
<>c__DisplayClass27_.socket.Close();
}
if (Interface.CallHook("OnRconConnection", socket.ConnectionInfo.ClientIpAddress) != null)
{
return;
}
if (<>c__DisplayClass27_.socket.ConnectionInfo.Path != this.requiredPath)
{
//---
csharp
//---
if (socket == null)
{
return;
}
IPEndPoint iPEndPoint = socket.RemoteEndPoint as IPEndPoint;
if (Interface.CallHook("OnRconConnection", iPEndPoint.Address) != null)
{
return;
}
if (RCon.IsBanned(iPEndPoint.Address))
{
//---