Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1052)

Unified Diff: content/browser/renderer_host/p2p/socket_host_tcp.cc

Issue 689243002: Fix the port of remote HostPortPair in P2PSocketHostTcpBase::Init. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/p2p/socket_host_tcp.cc
diff --git a/content/browser/renderer_host/p2p/socket_host_tcp.cc b/content/browser/renderer_host/p2p/socket_host_tcp.cc
index d2f2711409018d7f579eb473a4279601f98330ab..11d892f0d3f44ead0cbb2a78ab5c6296a660fafc 100644
--- a/content/browser/renderer_host/p2p/socket_host_tcp.cc
+++ b/content/browser/renderer_host/p2p/socket_host_tcp.cc
@@ -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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698