mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00: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:
parent
419fad084e
commit
69b7dc3289
1 changed files with 6 additions and 10 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue