This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 973
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13713 from brave/fix/13668
add advanced webrtc IP handling preference
- Loading branch information
Showing
7 changed files
with
81 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
// https://developer.chrome.com/extensions/privacy#type-IPHandlingPolicy | ||
// see src/content/public/common/webrtc_ip_handling_policy.h for descriptions | ||
module.exports = { | ||
// This is the default behavior of Chrome. Currently, WebRTC has the right to | ||
// enumerate all interfaces and bind them to discover public interfaces. | ||
default: 'default', | ||
// WebRTC should only use the default route used by http. This also exposes | ||
// the associated default private address. Default route is the route chosen | ||
// by the OS on a multi-homed endpoint. | ||
publicPrivate: 'default_public_and_private_interfaces', | ||
// WebRTC should only use the default route used by http. This doesn't | ||
// expose any local addresses. | ||
publicOnly: 'default_public_interface_only', | ||
// WebRTC should only use TCP to contact peers or servers unless the proxy | ||
// server supports UDP. This doesn't expose any local addresses either. | ||
disableNonProxiedUdp: 'disable_non_proxied_udp' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters