mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 03:38:26 -07:00
Update FirewallAdapter.cs
This commit is contained in:
parent
3488ba3d84
commit
2f6a13092f
1 changed files with 3 additions and 3 deletions
|
@ -31,13 +31,13 @@ namespace NzbDrone.Host.AccessControl
|
||||||
{
|
{
|
||||||
if (!IsNzbDronePortOpen(_configFileProvider.Port))
|
if (!IsNzbDronePortOpen(_configFileProvider.Port))
|
||||||
{
|
{
|
||||||
_logger.Debug("Opening Port for NzbDrone: {0}", _configFileProvider.Port);
|
_logger.Debug("Opening Port for Lidarr: {0}", _configFileProvider.Port);
|
||||||
OpenFirewallPort(_configFileProvider.Port);
|
OpenFirewallPort(_configFileProvider.Port);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_configFileProvider.EnableSsl && !IsNzbDronePortOpen(_configFileProvider.SslPort))
|
if (_configFileProvider.EnableSsl && !IsNzbDronePortOpen(_configFileProvider.SslPort))
|
||||||
{
|
{
|
||||||
_logger.Debug("Opening SSL Port for NzbDrone: {0}", _configFileProvider.SslPort);
|
_logger.Debug("Opening SSL Port for Lidarr: {0}", _configFileProvider.SslPort);
|
||||||
OpenFirewallPort(_configFileProvider.SslPort);
|
OpenFirewallPort(_configFileProvider.SslPort);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,7 @@ namespace NzbDrone.Host.AccessControl
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Warn(ex, "Failed to open port in firewall for NzbDrone " + portNumber);
|
_logger.Warn(ex, "Failed to open port in firewall for Lidarr " + portNumber);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue