Add support for manually configuring subnets as VPN
This patch adds support for manually setting subnets that
should be handled as VPN, i.e be subject to VpnPreference,
in case webrtc fails to auto-detect VPNs.
Bug: webrtc:13097
Change-Id: I42514f0677a35cfe30ad053570fa9c2a5b4a856b
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/230122
Commit-Queue: Jonas Oreland <jonaso@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#34852}
diff --git a/api/peer_connection_interface.h b/api/peer_connection_interface.h
index a9fd5e3..b1700ce 100644
--- a/api/peer_connection_interface.h
+++ b/api/peer_connection_interface.h
@@ -661,6 +661,10 @@
// perfect, adherence to this preference cannot be guaranteed.
VpnPreference vpn_preference = VpnPreference::kDefault;
+ // List of address/length subnets that should be treated like
+ // VPN (in case webrtc fails to auto detect them).
+ std::vector<rtc::NetworkMask> vpn_list;
+
//
// Don't forget to update operator== if adding something.
//