Chromium Code Reviews| Index: chrome/test/chromedriver/net/adb_client_socket.cc |
| diff --git a/chrome/test/chromedriver/net/adb_client_socket.cc b/chrome/test/chromedriver/net/adb_client_socket.cc |
| index 9a5a672c6bc7e69fc06f35237c67cd837b01f100..28af6cf31f8f435ba42832607209b793d08ab942 100644 |
| --- a/chrome/test/chromedriver/net/adb_client_socket.cc |
| +++ b/chrome/test/chromedriver/net/adb_client_socket.cc |
| @@ -365,8 +365,13 @@ AdbClientSocket::~AdbClientSocket() { |
| } |
| void AdbClientSocket::Connect(const net::CompletionCallback& callback) { |
| - net::AddressList address_list = net::AddressList::CreateFromIPAddress( |
| - net::IPAddress::IPv4Localhost(), port_); |
| + net::IPAddressList list = {net::IPAddress::IPv4Localhost(), |
| + net::IPAddress::IPv6Localhost()}; |
|
samuong
2016/09/21 15:07:34
Would it be better to resolve "localhost"? On IPv4
|
| + net::AddressList ip_list = net::AddressList::CreateFromIPAddressList( |
| + list, "localhost"); |
| + net::AddressList address_list = net::AddressList::CopyWithPort( |
| + ip_list, port_); |
| + |
| socket_.reset(new net::TCPClientSocket(address_list, NULL, NULL, |
| net::NetLog::Source())); |
| int result = socket_->Connect(callback); |