|
|
@ -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"),
|
|
|
|