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

Unified Diff: sdk/lib/_internal/pub/lib/src/safe_http_server.dart

Issue 14701007: Update pub usage of '127.0.0.1'. (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 | « sdk/lib/_internal/pub/lib/src/oauth2.dart ('k') | sdk/lib/_internal/pub/test/test_pub.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/safe_http_server.dart
diff --git a/sdk/lib/_internal/pub/lib/src/safe_http_server.dart b/sdk/lib/_internal/pub/lib/src/safe_http_server.dart
index 2c193681045583de7d9e94263bb34495f5167576..25d57ee6bbef77bc4dfb63d532a73731a77847dd 100644
--- a/sdk/lib/_internal/pub/lib/src/safe_http_server.dart
+++ b/sdk/lib/_internal/pub/lib/src/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 | « sdk/lib/_internal/pub/lib/src/oauth2.dart ('k') | sdk/lib/_internal/pub/test/test_pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698