Index: remoting/protocol/jingle_session.cc |
diff --git a/remoting/protocol/jingle_session.cc b/remoting/protocol/jingle_session.cc |
index 907bc93265c497d3715f55604a723f90f194048b..f7b264139109f58e358f4f4245557bd6e8b40d2b 100644 |
--- a/remoting/protocol/jingle_session.cc |
+++ b/remoting/protocol/jingle_session.cc |
@@ -514,8 +514,17 @@ void JingleSession::OnRouteChange(cricket::TransportChannel* channel, |
return; |
} |
+ const cricket::Candidate& local_candidate = |
+ channel->GetP2PChannel()->best_connection()->local_candidate(); |
Sergey Ulanov
2012/02/02 01:10:23
add DCHECK(channel->GetP2PChannel()) and DCHECK(ch
Lambros
2012/02/02 01:48:12
Done.
|
+ net::IPEndPoint local_end_point; |
+ if (!jingle_glue::SocketAddressToIPEndPoint(local_candidate.address(), |
+ &local_end_point)) { |
+ NOTREACHED(); |
+ return; |
+ } |
+ |
if (!route_change_callback_.is_null()) |
- route_change_callback_.Run(channel->name(), end_point); |
+ route_change_callback_.Run(channel->name(), end_point, local_end_point); |
} |
const cricket::ContentInfo* JingleSession::GetContentInfo() const { |