mirror of https://github.com/lidarr/Lidarr
Use * instead of + in urlacl's
This commit is contained in:
parent
f4dd6adc6a
commit
399c96c5e3
|
@ -195,19 +195,19 @@ namespace NzbDrone.Common
|
||||||
|
|
||||||
private void RegisterUrl(int portNumber)
|
private void RegisterUrl(int portNumber)
|
||||||
{
|
{
|
||||||
var arguments = String.Format("http add urlacl http://+:{0}/ user=EVERYONE", portNumber);
|
var arguments = String.Format("http add urlacl http://*:{0}/ user=EVERYONE", portNumber);
|
||||||
RunNetsh(arguments);
|
RunNetsh(arguments);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UnregisterUrl(int portNumber)
|
private void UnregisterUrl(int portNumber)
|
||||||
{
|
{
|
||||||
var arguments = String.Format("http delete urlacl http://+:{0}/", portNumber);
|
var arguments = String.Format("http delete urlacl http://*:{0}/", portNumber);
|
||||||
RunNetsh(arguments);
|
RunNetsh(arguments);
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool CheckIfUrlIsRegisteredUrl(int portNumber)
|
private bool CheckIfUrlIsRegisteredUrl(int portNumber)
|
||||||
{
|
{
|
||||||
var url = String.Format("http://+:{0}/", portNumber);
|
var url = String.Format("http://*:{0}/", portNumber);
|
||||||
var arguments = String.Format("http show urlacl url=\"{0}\"", url);
|
var arguments = String.Format("http show urlacl url=\"{0}\"", url);
|
||||||
var output = RunNetsh(arguments);
|
var output = RunNetsh(arguments);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue