mirror of
https://github.com/lidarr/Lidarr
synced 2025-03-11 14:33:44 +00:00
Added multiple bindings for IISExpress. Allowing users to not run as admin (or add an urlacl as admin), but still access NzbDrone from localhost.
This commit is contained in:
parent
78a9adbbcc
commit
3efe465114
1 changed files with 7 additions and 1 deletions
|
@ -172,6 +172,12 @@ namespace NzbDrone
|
||||||
configXml.XPathSelectElement("configuration/system.applicationHost/sites").Elements("site").Where(
|
configXml.XPathSelectElement("configuration/system.applicationHost/sites").Elements("site").Where(
|
||||||
d => d.Attribute("name").Value.ToLowerInvariant() == "nzbdrone").First().Element("bindings");
|
d => d.Attribute("name").Value.ToLowerInvariant() == "nzbdrone").First().Element("bindings");
|
||||||
bindings.Descendants().Remove();
|
bindings.Descendants().Remove();
|
||||||
|
bindings.Add(
|
||||||
|
new XElement("binding",
|
||||||
|
new XAttribute("protocol", "http"),
|
||||||
|
new XAttribute("bindingInformation", String.Format("*:{0}:localhost", Config.Port))
|
||||||
|
));
|
||||||
|
|
||||||
bindings.Add(
|
bindings.Add(
|
||||||
new XElement("binding",
|
new XElement("binding",
|
||||||
new XAttribute("protocol", "http"),
|
new XAttribute("protocol", "http"),
|
||||||
|
|
Loading…
Add table
Reference in a new issue