public Proxy() { var config = Core.DI.Get <Config>(); socket = new UdpSocket( config.Collection.InputPort, false, config.Collection.BlackList ); socket.Listen(OnReceiveClient); logger = Core.DI.Get <Logger>(); logger.Info( $"Proxy server was enabled on port {config.Collection.InputPort}. " + $"Redirecting to {config.Collection.RedirectIp}:{config.Collection.RedirectPort}" ); }