diff options
Diffstat (limited to 'remoting/jingle_glue/ssl_socket_adapter.cc')
-rw-r--r-- | remoting/jingle_glue/ssl_socket_adapter.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/remoting/jingle_glue/ssl_socket_adapter.cc b/remoting/jingle_glue/ssl_socket_adapter.cc index b6b530d..9e5ef86 100644 --- a/remoting/jingle_glue/ssl_socket_adapter.cc +++ b/remoting/jingle_glue/ssl_socket_adapter.cc @@ -217,11 +217,9 @@ bool TransportSocket::IsConnectedAndIdle() const { return false; } -int TransportSocket::GetPeerAddress(net::AddressList* address) const { +int TransportSocket::GetPeerAddress(net::IPEndPoint* address) const { talk_base::SocketAddress socket_address = socket_->GetRemoteAddress(); - net::IPEndPoint endpoint; - if (jingle_glue::SocketAddressToIPEndPoint(socket_address, &endpoint)) { - *address = net::AddressList(endpoint); + if (jingle_glue::SocketAddressToIPEndPoint(socket_address, address)) { return net::OK; } else { return net::ERR_FAILED; |