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

Unified Diff: webrtc/rtc_base/network.cc

Issue 2985133002: If adapter type is unknown and interface name is "ipsec", treat as VPN. (Closed)
Patch Set: Created 3 years, 5 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 | webrtc/rtc_base/network_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/rtc_base/network.cc
diff --git a/webrtc/rtc_base/network.cc b/webrtc/rtc_base/network.cc
index 1f4a705db030e5b689e46b5fc460e7571e24e609..e68ec0b4c2372a164ce6663abc2f864d1624bfab 100644
--- a/webrtc/rtc_base/network.cc
+++ b/webrtc/rtc_base/network.cc
@@ -801,6 +801,9 @@ AdapterType BasicNetworkManager::GetAdapterTypeFromName(
return type;
}
}
+ if (strncmp(network_name, "ipsec", 5) == 0) {
+ return ADAPTER_TYPE_VPN;
+ }
#if defined(WEBRTC_IOS)
// Cell networks are pdp_ipN on iOS.
if (strncmp(network_name, "pdp_ip", 6) == 0) {
« no previous file with comments | « no previous file | webrtc/rtc_base/network_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698