diff options
author | gorhill <rhill@raymondhill.net> | 2015-06-24 20:01:27 -0400 |
---|---|---|
committer | gorhill <rhill@raymondhill.net> | 2015-06-24 20:01:27 -0400 |
commit | 1ba7894a299372d0baf5599d22e0617a7ab37e29 (patch) | |
tree | f165d7ba6f35871a09eb76fcb7de17e85085142b /platform/firefox | |
parent | c596e6c0e1cedd23d9d80d02daf8d8d57aae70db (diff) | |
download | uBlock-1ba7894a299372d0baf5599d22e0617a7ab37e29.zip uBlock-1ba7894a299372d0baf5599d22e0617a7ab37e29.tar.gz uBlock-1ba7894a299372d0baf5599d22e0617a7ab37e29.tar.bz2 |
ability to prevent local ip address leak thru webrtc
Diffstat (limited to 'platform/firefox')
-rw-r--r-- | platform/firefox/vapi-background.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 67fa567..3d73648 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -195,6 +195,16 @@ vAPI.browserSettings = { } break; + case 'webrtcIPAddress': + this.rememberOriginalValue('media.peerconnection', 'enabled'); + value = !!details[setting]; + if ( value === true ) { + this.clear('media.peerconnection', 'enabled'); + } else { + this.setBool('media.peerconnection', 'enabled', false); + } + break; + default: break; } |