From 3efe465114f301fc2494227b17b06faf40492dfe Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 20 Sep 2011 22:41:44 -0700 Subject: [PATCH] Added multiple bindings for IISExpress. Allowing users to not run as admin (or add an urlacl as admin), but still access NzbDrone from localhost. --- NzbDrone/IISController.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/NzbDrone/IISController.cs b/NzbDrone/IISController.cs index fcc4018e8..1430e489b 100644 --- a/NzbDrone/IISController.cs +++ b/NzbDrone/IISController.cs @@ -175,9 +175,15 @@ namespace NzbDrone bindings.Add( new XElement("binding", new XAttribute("protocol", "http"), - new XAttribute("bindingInformation", String.Format("*:{0}:", Config.Port)) + new XAttribute("bindingInformation", String.Format("*:{0}:localhost", Config.Port)) )); + bindings.Add( + new XElement("binding", + new XAttribute("protocol", "http"), + new XAttribute("bindingInformation", String.Format("*:{0}:", Config.Port)) + )); + configXml.Save(configPath); }