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

Unified Diff: runtime/bin/socket.cc

Issue 24269017: Fix bugs in SocketAddress (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added Android Created 7 years, 3 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 | « no previous file | runtime/bin/socket_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket.cc
diff --git a/runtime/bin/socket.cc b/runtime/bin/socket.cc
index 672e333b467970ba74fd708ace6d731dc8ec7167..bb5e9c2da815004868c38b5733fad68fcfa41839 100644
--- a/runtime/bin/socket.cc
+++ b/runtime/bin/socket.cc
@@ -55,7 +55,7 @@ void FUNCTION_NAME(InternetAddress_Fixed)(Dart_NativeArguments args) {
}
case SocketAddress::ADDRESS_LOOPBACK_IP_V6: {
raw.in6.sin6_family = AF_INET6;
- raw.in6.sin6_addr = in6addr_any;
+ raw.in6.sin6_addr = in6addr_loopback;
break;
}
case SocketAddress::ADDRESS_ANY_IP_V4: {
@@ -65,7 +65,7 @@ void FUNCTION_NAME(InternetAddress_Fixed)(Dart_NativeArguments args) {
}
case SocketAddress::ADDRESS_ANY_IP_V6: {
raw.in6.sin6_family = AF_INET6;
- raw.in6.sin6_addr = in6addr_loopback;
+ raw.in6.sin6_addr = in6addr_any;
break;
}
default:
« no previous file with comments | « no previous file | runtime/bin/socket_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698