Index: runtime/bin/socket_patch.dart |
diff --git a/runtime/bin/socket_patch.dart b/runtime/bin/socket_patch.dart |
index e69dfedbb752b5e8f33a6e3a6b2b26dbce05f838..d9886117023cf22f8eee06128db1f09f727474c6 100644 |
--- a/runtime/bin/socket_patch.dart |
+++ b/runtime/bin/socket_patch.dart |
@@ -88,6 +88,12 @@ class _InternetAddress implements InternetAddress { |
} |
} |
+ // Create a clone of this _InternetAddress replacing the host. |
+ _InternetAddress _cloneWithNewHost(String host) { |
+ return new _InternetAddress( |
+ type, address, host, new Uint8List.fromList(_sockaddr_storage)); |
+ } |
+ |
String toString() { |
return "InternetAddress('$address', ${type.name})"; |
} |