| Index: sdk/lib/io/secure_socket.dart
|
| diff --git a/sdk/lib/io/secure_socket.dart b/sdk/lib/io/secure_socket.dart
|
| index 380a8c466abd282facda77184ed96728b4e0003b..679aa71f0deb28c9f88fcbb4746171cff78aa65f 100644
|
| --- a/sdk/lib/io/secure_socket.dart
|
| +++ b/sdk/lib/io/secure_socket.dart
|
| @@ -415,7 +415,7 @@ class _RawSecureSocket extends Stream<RawSocketEvent>
|
| String _selectedProtocol;
|
|
|
| static Future<_RawSecureSocket> connect(
|
| - dynamic/*String|InternetAddress*/ host,
|
| + host,
|
| int requestedPort,
|
| {bool is_server,
|
| SecurityContext context,
|
| @@ -430,10 +430,8 @@ class _RawSecureSocket extends Stream<RawSocketEvent>
|
| requestClientCertificate, requireClientCertificate,
|
| onBadCertificate);
|
| if (host is InternetAddress) host = host.host;
|
| - InternetAddress address = socket.address;
|
| - if (host != null) {
|
| - address = InternetAddress._cloneWithNewHost(address, host);
|
| - }
|
| + var address = socket.address;
|
| + if (host != null) address = address._cloneWithNewHost(host);
|
| return new _RawSecureSocket(address,
|
| requestedPort,
|
| is_server,
|
| @@ -519,10 +517,10 @@ class _RawSecureSocket extends Stream<RawSocketEvent>
|
| }
|
| }
|
|
|
| - StreamSubscription<RawSocketEvent> listen(void onData(RawSocketEvent data),
|
| - {Function onError,
|
| - void onDone(),
|
| - bool cancelOnError}) {
|
| + StreamSubscription listen(void onData(RawSocketEvent data),
|
| + {Function onError,
|
| + void onDone(),
|
| + bool cancelOnError}) {
|
| _sendWriteEvent();
|
| return _stream.listen(onData,
|
| onError: onError,
|
|
|