Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Unified Diff: runtime/bin/socket_patch.dart

Issue 17381012: Ensure that there is no "hidden" DNS lookup in secure socket code (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/secure_socket_patch.dart ('k') | sdk/lib/io/secure_socket.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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})";
}
« no previous file with comments | « runtime/bin/secure_socket_patch.dart ('k') | sdk/lib/io/secure_socket.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698