protected override void InvokeOnClientConnected(SessionEventArgs e)
{
((VirtualFtpSession)e.Session).CurrentFolder = RootFolder;
if (UserManager == null)
return;
if (!UserManager.CheckIP(e.Connection.RemoteEndPoint, e.Connection.LocalEndPoint))
{
e.Connection.Disconnect();
throw new Exception("Access not allowed from this IP.");
}
base.InvokeOnClientConnected(e);
}
#endregion