Index: content/renderer/p2p/ipc_socket_factory.cc |
diff --git a/content/renderer/p2p/ipc_socket_factory.cc b/content/renderer/p2p/ipc_socket_factory.cc |
index 8922fa493c6aafbf3373d7b35d71fb655116f686..f9dfbe0c32682b93c3f527ea3aa8946a3eccae53 100644 |
--- a/content/renderer/p2p/ipc_socket_factory.cc |
+++ b/content/renderer/p2p/ipc_socket_factory.cc |
@@ -244,7 +244,9 @@ bool IpcPacketSocket::Init(P2PSocketType type, |
// We need to send both resolved and unresolved address in Init. Unresolved |
// address will be used in case of TLS for certificate hostname matching. |
// Certificate will be tied to domain name not to IP address. |
- P2PHostAndIPEndPoint remote_info(remote_address.hostname(), remote_endpoint); |
+ std::string remote_hostname = remote_address.hostname() + ":" + |
+ remote_address.PortAsString(); |
+ P2PHostAndIPEndPoint remote_info(remote_hostname, remote_endpoint); |
client->Init(type, local_endpoint, remote_info, this); |