Also allow "all" as the interface.

This fixes #2706
This commit is contained in:
Kenneth Skovhede
2017-09-15 08:49:33 +02:00
parent 61e58aca9e
commit 4e5fb1aaa6
+1 -1
View File
@@ -107,7 +107,7 @@ namespace Duplicati.Server.WebServer
if (string.IsNullOrWhiteSpace(interfacestring))
interfacestring = DEFAULT_OPTION_INTERFACE;
if (interfacestring.Trim() == "*" || interfacestring.Trim().Equals("any", StringComparison.InvariantCultureIgnoreCase))
if (interfacestring.Trim() == "*" || interfacestring.Trim().Equals("any", StringComparison.InvariantCultureIgnoreCase) || interfacestring.Trim().Equals("all", StringComparison.InvariantCultureIgnoreCase))
listenInterface = System.Net.IPAddress.Any;
else if (interfacestring.Trim() == "loopback")
listenInterface = System.Net.IPAddress.Loopback;