mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Allow binding to specific interface addresses
https://trello.com/c/aWazKGQc/404-allow-binding-to-specified-ip-address
This commit is contained in:
parent
65c1e8852a
commit
5a8ce04bd5
6 changed files with 63 additions and 13 deletions
|
@ -23,6 +23,7 @@ namespace NzbDrone.Core.Configuration
|
|||
Dictionary<string, object> GetConfigDictionary();
|
||||
void SaveConfigDictionary(Dictionary<string, object> configValues);
|
||||
|
||||
string BindAddress { get; }
|
||||
int Port { get; }
|
||||
int SslPort { get; }
|
||||
bool EnableSsl { get; }
|
||||
|
@ -110,6 +111,22 @@ namespace NzbDrone.Core.Configuration
|
|||
_eventAggregator.PublishEvent(new ConfigFileSavedEvent());
|
||||
}
|
||||
|
||||
public string BindAddress
|
||||
{
|
||||
get
|
||||
{
|
||||
const string defaultValue = "*";
|
||||
|
||||
string bindAddress = GetValue("BindAddress", defaultValue);
|
||||
if (string.IsNullOrWhiteSpace(bindAddress))
|
||||
{
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
return bindAddress;
|
||||
}
|
||||
}
|
||||
|
||||
public int Port
|
||||
{
|
||||
get { return GetValueInt("Port", 8989); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue