diff options
author | André Oliveira <37463445+SpecialAro@users.noreply.github.com> | 2022-09-08 00:41:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-07 23:41:49 +0000 |
commit | 6125918e90347c891db435842d7de66060a8fbf6 (patch) | |
tree | 78488a9b5aa88b2df3d8f37b2079e85c81969f62 /src/config.ts | |
parent | Upgrade 'electron' to '20.1.2' (diff) | |
download | ferdium-app-6125918e90347c891db435842d7de66060a8fbf6.tar.gz ferdium-app-6125918e90347c891db435842d7de66060a8fbf6.tar.zst ferdium-app-6125918e90347c891db435842d7de66060a8fbf6.zip |
feat: add ability to set how ferdium handles webrtc ip when using a VPN (#602)
Diffstat (limited to 'src/config.ts')
-rw-r--r-- | src/config.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/config.ts b/src/config.ts index c8cb09d84..1261d900f 100644 --- a/src/config.ts +++ b/src/config.ts | |||
@@ -38,6 +38,21 @@ export const CDN_URL = 'https://cdn.franzinfra.com'; | |||
38 | 38 | ||
39 | export const KEEP_WS_LOADED_USID = '0a0aa000-0a0a-49a0-a000-a0a0a0a0a0a0'; | 39 | export const KEEP_WS_LOADED_USID = '0a0aa000-0a0a-49a0-a000-a0a0a0a0a0a0'; |
40 | 40 | ||
41 | const defaultWebRTCIPHandlingPolicy = 'default'; | ||
42 | const publicWebRTCIPHandlingPolicy = 'default_public_interface_only'; | ||
43 | const publicPrivateWebRTCIPHandlingPolicy = | ||
44 | 'default_public_and_private_interfaces'; | ||
45 | const disableWebRTCIPHandlingPolicy = 'disable_non_proxied_udp'; | ||
46 | |||
47 | export const WEBRTC_IP_HANDLING_POLICY = { | ||
48 | [defaultWebRTCIPHandlingPolicy]: 'Expose user public and local IPs', | ||
49 | [publicWebRTCIPHandlingPolicy]: | ||
50 | 'Expose user public IP, but not expose user local IP', | ||
51 | [publicPrivateWebRTCIPHandlingPolicy]: | ||
52 | 'Expose user public and local IPs (only use default route used by http)', | ||
53 | [disableWebRTCIPHandlingPolicy]: 'Do not expose public or local IPs', | ||
54 | }; | ||
55 | |||
41 | // TODO: Need to convert many of these to i18n | 56 | // TODO: Need to convert many of these to i18n |
42 | export const HIBERNATION_STRATEGIES = { | 57 | export const HIBERNATION_STRATEGIES = { |
43 | 10: 'Extremely Fast Hibernation (10sec)', | 58 | 10: 'Extremely Fast Hibernation (10sec)', |
@@ -397,6 +412,7 @@ export const DEFAULT_APP_SETTINGS = { | |||
397 | sidebarServicesLocation: SIDEBAR_SERVICES_LOCATION_TOPLEFT, | 412 | sidebarServicesLocation: SIDEBAR_SERVICES_LOCATION_TOPLEFT, |
398 | iconSize: iconSizeBias, | 413 | iconSize: iconSizeBias, |
399 | navigationBarBehaviour: 'custom', | 414 | navigationBarBehaviour: 'custom', |
415 | webRTCIPHandlingPolicy: disableWebRTCIPHandlingPolicy, | ||
400 | searchEngine: SEARCH_ENGINE_STARTPAGE, | 416 | searchEngine: SEARCH_ENGINE_STARTPAGE, |
401 | translatorLanguage: 'en', | 417 | translatorLanguage: 'en', |
402 | translatorEngine: TRANSLATOR_ENGINE_LIBRETRANSLATE, | 418 | translatorEngine: TRANSLATOR_ENGINE_LIBRETRANSLATE, |