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

Unified Diff: pkg/http/test/safe_http_server.dart

Issue 14766006: Use 'localhost' instead of '127.0.0.1', as IPv6 connections now can occur. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 | pkg/scheduled_test/lib/scheduled_server.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/test/safe_http_server.dart
diff --git a/pkg/http/test/safe_http_server.dart b/pkg/http/test/safe_http_server.dart
index 2c193681045583de7d9e94263bb34495f5167576..25d57ee6bbef77bc4dfb63d532a73731a77847dd 100644
--- a/pkg/http/test/safe_http_server.dart
+++ b/pkg/http/test/safe_http_server.dart
@@ -21,7 +21,7 @@ import 'dart:uri';
class SafeHttpServer extends StreamView<HttpRequest> implements HttpServer {
final HttpServer _inner;
- static Future<SafeHttpServer> bind([String host = "127.0.0.1",
+ static Future<SafeHttpServer> bind([String host = "localhost",
int port = 0, int backlog = 0]) {
return HttpServer.bind(host, port, backlog: backlog)
.then((server) => new SafeHttpServer(server));
« no previous file with comments | « no previous file | pkg/scheduled_test/lib/scheduled_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698