Index: runtime/bin/socket_patch.dart |
diff --git a/runtime/bin/socket_patch.dart b/runtime/bin/socket_patch.dart |
index 1515403a76c5972eb6a0c07e7f6b3fcc943739a9..1a3a6b66c5126ff13b9b4d7ce3e264e2260fdd50 100644 |
--- a/runtime/bin/socket_patch.dart |
+++ b/runtime/bin/socket_patch.dart |
@@ -3,9 +3,10 @@ |
// BSD-style license that can be found in the LICENSE file. |
patch class RawServerSocket { |
- /* patch */ static Future<RawServerSocket> bind([address = "127.0.0.1", |
- int port = 0, |
- int backlog = 0]) { |
+ /* patch */ static Future<RawServerSocket> bind(address, |
+ int port, |
+ {int backlog: 0}) { |
+ if (address == null) address = InternetAddress.LOOPBACK_IP_V4; |
Anders Johnsen
2013/05/01 07:50:19
No 'null' check - should not be null.
Søren Gjesse
2013/05/01 07:55:20
Done.
|
return _RawServerSocket.bind(address, port, backlog); |
} |
} |
@@ -737,9 +738,9 @@ class _RawSocket extends Stream<RawSocketEvent> |
patch class ServerSocket { |
- /* patch */ static Future<ServerSocket> bind([address = "127.0.0.1", |
- int port = 0, |
- int backlog = 0]) { |
+ /* patch */ static Future<ServerSocket> bind(address, |
+ int port, |
+ {int backlog: 0}) { |
return _ServerSocket.bind(address, port, backlog); |
} |
} |