private void _onClientStatusChanged(object sender, SessionStatusEventArgs e) { _sessions.OnClientStatusChanged(sender, e); if (e.NewStatus == SessionStatus.Connected && _configurationManager.GetCVar <bool>("console.loginlocal")) { var session = e.Session; var address = session.ConnectedClient.RemoteEndPoint.Address; if (Equals(address, IPAddress.Loopback) || Equals(address, IPAddress.IPv6Loopback)) { SetGroup(session, new ConGroupIndex(_configurationManager.GetCVar <int>("console.adminGroup"))); } } }
private void _onClientStatusChanged(object?sender, SessionStatusEventArgs e) { _sessions.OnClientStatusChanged(sender, e); if (e.NewStatus == SessionStatus.Connected && _configurationManager.GetCVar(CVars.ConsoleLoginLocal)) { var session = e.Session; var address = session.ConnectedClient.RemoteEndPoint.Address; if (Equals(address, IPAddress.Loopback) || Equals(address, IPAddress.IPv6Loopback)) { SetGroup(session, new ConGroupIndex(_configurationManager.GetCVar(CVars.ConsoleHostGroup))); UpdateClientData(session); } } }