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

Unified Diff: remoting/host/host_event_logger.cc

Issue 9316052: Log IP/port of host as well as client in Me2Me host (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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
Index: remoting/host/host_event_logger.cc
diff --git a/remoting/host/host_event_logger.cc b/remoting/host/host_event_logger.cc
index 4947d06fa591fc3c648bddb1cbd609026d40254a..de81ec719321f0b0931256a19e8beb3219d8e5ca 100644
--- a/remoting/host/host_event_logger.cc
+++ b/remoting/host/host_event_logger.cc
@@ -33,10 +33,14 @@ void HostEventLogger::OnAccessDenied(const std::string& jid) {
Log("Access denied for client: " + jid);
}
-void HostEventLogger::OnClientIpAddress(const std::string& jid,
- const std::string& channel_name,
- const net::IPEndPoint& end_point) {
- Log("Channel IP for client: " + jid + " ip='" + end_point.ToString() +
+void HostEventLogger::OnClientIpAddress(
+ const std::string& jid,
+ const std::string& channel_name,
+ const net::IPEndPoint& end_point,
+ const net::IPEndPoint& local_end_point) {
+ Log("Channel IP for client: " + jid +
+ " ip='" + end_point.ToString() +
+ "' host_ip='" + local_end_point.ToString() +
"' channel='" + channel_name + "'");
}

Powered by Google App Engine
This is Rietveld 408576698