Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mcs/class/System/System.Net/EndPointListener.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/mcs/class/System/System.Net/EndPointListener.cs b/mcs/class/System/System.Net/EndPointListener.cs
index fa6827e8a6e..34fe18fe888 100644
--- a/mcs/class/System/System.Net/EndPointListener.cs
+++ b/mcs/class/System/System.Net/EndPointListener.cs
@@ -180,13 +180,18 @@ namespace System.Net {
ArrayList list = unhandled;
best_match = MatchFromList (host, path, list, out prefix);
+ if (path != path_slash && best_match == null)
+ best_match = MatchFromList (host, path_slash, list, out prefix);
if (best_match != null)
return best_match;
list = all;
best_match = MatchFromList (host, path, list, out prefix);
+ if (path != path_slash && best_match == null)
+ best_match = MatchFromList (host, path_slash, list, out prefix);
if (best_match != null)
return best_match;
+
return null;
}