Beispiel #1
0
        public void DisableLeakProtection()
        {
            if (!LeakProtectionEnabled)
            {
                return;
            }

            try
            {
                _logger.Info("Firewall: Restoring internet");

                _sublayer.DestroyAllFilters();
                _sublayer.DestroyAllCallouts();
                _serverAddressFilters.Clear();
                _baseProtectionFilters.Clear();
                LeakProtectionEnabled = false;
                _calloutDriver.Stop();

                _logger.Info("Firewall: Internet restored");
            }
            catch (NetworkFilterException ex)
            {
                _logger.Error(ex);
            }
        }