WebRTC's IP leaking can lowered/avoided by setting preferences:
- Code: Select all
// This options obsoleted from Chromium M50, but still exists in source/work on latest stable (51).
webrtc.multiple_routes_enabled to false
webrtc.nonproxied_udp_enabled to false
// See webrtc_ip_handling_policy.h for description
webrtc.ip_handling_policy to disable_non_proxied_udp
But i'm have other question: can be unique device ids (media device id fingerprints) cleared? Or somehow shuffled?
I'm found in chromium code media.device_id_salt preference used for this, but when i'm trying set it in CEF - it is says that this preference is not registered.
I'm found that CEF contains probably related media_capture_devices_dispatcher class, so will glad for any advices how to do it in most simple way.
Or probably it is even easier to disable it is during build (that's acceptable for me). Any suggestions how to do this (where to read about)?
PS: cefclient by default is not show IP's (checked by
https://www.browserleaks.com/webrtc ), but in my browser based on same version - it is leak IPs by default. Not sure what's difference.
UPD: For me preferred way is not clearing device list, but change device ids/salt for each request context. But "clearing" (disabling enumeration) is also good option.
UPD2: In cefclient IP's leaked too. Sometimes they are not detected.