Commit 0a6de71f authored by jiayl's avatar jiayl Committed by Commit bot

Fix the port of remote HostPortPair in P2PSocketHostTcpBase::Init.

BUG=webrtc:3868

Review URL: https://codereview.chromium.org/689243002

Cr-Commit-Position: refs/heads/master@{#302359}
parent ff9bdbdb
......@@ -88,8 +88,8 @@ bool P2PSocketHostTcpBase::Init(const net::IPEndPoint& local_address,
// socket layer will do the DNS resolve.
if (remote_address.ip_address.address().empty()) {
DCHECK(!remote_address.hostname.empty());
dest_host_port_pair = net::HostPortPair::FromString(
remote_address.hostname);
dest_host_port_pair = net::HostPortPair(remote_address.hostname,
remote_address.ip_address.port());
} else {
dest_host_port_pair = net::HostPortPair::FromIPEndPoint(
remote_address.ip_address);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment