From 69b7dc3289986fa871cecea4ef0e1e2bb33b2013 Mon Sep 17 00:00:00 2001 From: gorhill Date: Mon, 27 Mar 2017 10:09:10 -0400 Subject: [PATCH] leveraging virtuous side-effect of using strictest setting for webrtc local IP address prevention, see https://github.com/uBlockOrigin/uAssets/issues/333#issuecomment-289426678 --- platform/chromium/vapi-background.js | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/platform/chromium/vapi-background.js b/platform/chromium/vapi-background.js index 2032ba2c1..8e3cc9e79 100644 --- a/platform/chromium/vapi-background.js +++ b/platform/chromium/vapi-background.js @@ -169,16 +169,12 @@ vAPI.browserSettings = (function() { scope: 'regular' }, this.noopCallback); } else { - // Respect current stricter setting if any. - cpn.webRTCIPHandlingPolicy.get({}, function(details) { - var value = details.value === 'disable_non_proxied_udp' ? - 'disable_non_proxied_udp' : - 'default_public_interface_only'; - cpn.webRTCIPHandlingPolicy.set({ - value: value, - scope: 'regular' - }, this.noopCallback); - }.bind(this)); + // https://github.com/uBlockOrigin/uAssets/issues/333#issuecomment-289426678 + // - Leverage virtuous side-effect of strictest setting. + cpn.webRTCIPHandlingPolicy.set({ + value: 'disable_non_proxied_udp', + scope: 'regular' + }, this.noopCallback); } } catch(ex) { console.error(ex);