Scope id is now removed from IpV6 Host.
authorMarcos Henrich <marcos.henrich@xamarin.com>
Tue, 15 Jul 2014 17:41:52 +0000 (18:41 +0100)
committerMarcos Henrich <marcos.henrich@xamarin.com>
Tue, 15 Jul 2014 17:41:52 +0000 (18:41 +0100)
mcs/class/System/System/Uri.cs

index db76427c40da9f4498b226e7998aab67193b7671..34b247b87f75716a05e08407ec264d4bef984454 100644 (file)
@@ -1646,7 +1646,8 @@ namespace System {
                                case UriHostNameType.IPv6:
                                        IPv6Address ipv6addr;
                                        if (IPv6Address.TryParse (host, out ipv6addr)) {
-                                               host = "[" + ipv6addr.ToString (!IriParsing) + "]";
+                                               host = ipv6addr.ToString (!IriParsing).Split ('%') [0];
+                                               host = "[" + host + "]";
                                                scope_id = ipv6addr.ScopeId;
                                        }
                                        break;