1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-04 18:19:38 +02:00

leveraging virtuous side-effect of using strictest setting for webrtc local IP address prevention, see https://github.com/uBlockOrigin/uAssets/issues/333#issuecomment-289426678

This commit is contained in:
gorhill 2017-03-27 10:09:10 -04:00
parent 419fad084e
commit 69b7dc3289
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -169,16 +169,12 @@ vAPI.browserSettings = (function() {
scope: 'regular' scope: 'regular'
}, this.noopCallback); }, this.noopCallback);
} else { } else {
// Respect current stricter setting if any. // https://github.com/uBlockOrigin/uAssets/issues/333#issuecomment-289426678
cpn.webRTCIPHandlingPolicy.get({}, function(details) { // - Leverage virtuous side-effect of strictest setting.
var value = details.value === 'disable_non_proxied_udp' ? cpn.webRTCIPHandlingPolicy.set({
'disable_non_proxied_udp' : value: 'disable_non_proxied_udp',
'default_public_interface_only'; scope: 'regular'
cpn.webRTCIPHandlingPolicy.set({ }, this.noopCallback);
value: value,
scope: 'regular'
}, this.noopCallback);
}.bind(this));
} }
} catch(ex) { } catch(ex) {
console.error(ex); console.error(ex);