diff options
| author | David Lönnhager <david.l@mullvad.net> | 2024-10-02 11:25:04 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2024-10-04 09:54:18 +0200 |
| commit | ee849a47cd5bda0db5cafef15e4679d1ddd173d2 (patch) | |
| tree | faeecfe212216380d4b859fb62c49e0371da7647 /gui/src/renderer | |
| parent | b71ec360998a29f08c1220de627d078fac575b7c (diff) | |
| download | mullvadvpn-ee849a47cd5bda0db5cafef15e4679d1ddd173d2.tar.xz mullvadvpn-ee849a47cd5bda0db5cafef15e4679d1ddd173d2.zip | |
Remove setting to leak traffic to apple networks
Diffstat (limited to 'gui/src/renderer')
| -rw-r--r-- | gui/src/renderer/app.tsx | 4 | ||||
| -rw-r--r-- | gui/src/renderer/components/Settings.tsx | 68 | ||||
| -rw-r--r-- | gui/src/renderer/redux/settings/actions.ts | 14 | ||||
| -rw-r--r-- | gui/src/renderer/redux/settings/reducers.ts | 8 | ||||
| -rw-r--r-- | gui/src/renderer/redux/userinterface/actions.ts | 16 | ||||
| -rw-r--r-- | gui/src/renderer/redux/userinterface/reducers.ts | 8 |
6 files changed, 2 insertions, 116 deletions
diff --git a/gui/src/renderer/app.tsx b/gui/src/renderer/app.tsx index 09c84ea673..6c40b0e908 100644 --- a/gui/src/renderer/app.tsx +++ b/gui/src/renderer/app.tsx @@ -246,7 +246,6 @@ export default class AppRenderer { this.setChangelog(initialState.changelog, initialState.forceShowChanges); this.setCurrentApiAccessMethod(initialState.currentApiAccessMethod); this.reduxActions.userInterface.setIsMacOs13OrNewer(initialState.isMacOs13OrNewer); - this.reduxActions.userInterface.setIsMacOs14p6OrNewer(initialState.isMacOs14p6OrNewer); if (initialState.macOsScrollbarVisibility !== undefined) { this.reduxActions.userInterface.setMacOsScrollbarVisibility( @@ -325,8 +324,6 @@ export default class AppRenderer { IpcRendererEventChannel.settings.updateBridgeSettings(bridgeSettings); public setDnsOptions = (dnsOptions: IDnsOptions) => IpcRendererEventChannel.settings.setDnsOptions(dnsOptions); - public setAppleServicesBypass = (enabled: boolean) => - IpcRendererEventChannel.settings.setAppleServicesBypass(enabled); public clearAccountHistory = () => IpcRendererEventChannel.accountHistory.clear(); public setAutoConnect = (value: boolean) => IpcRendererEventChannel.guiSettings.setAutoConnect(value); @@ -832,7 +829,6 @@ export default class AppRenderer { reduxSettings.updateWireguardDaita(newSettings.tunnelOptions.wireguard.daita); reduxSettings.updateBridgeState(newSettings.bridgeState); reduxSettings.updateDnsOptions(newSettings.tunnelOptions.dns); - reduxSettings.updateAppleServicesBypass(newSettings.appleServicesBypass); reduxSettings.updateSplitTunnelingState(newSettings.splitTunnel.enableExclusions); reduxSettings.updateObfuscationSettings(newSettings.obfuscationSettings); reduxSettings.updateCustomLists(newSettings.customLists); diff --git a/gui/src/renderer/components/Settings.tsx b/gui/src/renderer/components/Settings.tsx index d76ebb242e..0a691d340f 100644 --- a/gui/src/renderer/components/Settings.tsx +++ b/gui/src/renderer/components/Settings.tsx @@ -7,20 +7,10 @@ import { useAppContext } from '../context'; import { useHistory } from '../lib/history'; import { RoutePath } from '../lib/routes'; import { useSelector } from '../redux/store'; -import { - AriaDescribed, - AriaDescription, - AriaDescriptionGroup, - AriaDetails, - AriaInput, - AriaInputGroup, - AriaLabel, -} from './AriaGroup'; +import { AriaDescribed, AriaDescription, AriaDescriptionGroup } from './AriaGroup'; import * as Cell from './cell'; -import InfoButton from './InfoButton'; import { BackAction } from './KeyboardNavigation'; import { Layout, SettingsContainer } from './Layout'; -import { ModalMessage } from './Modal'; import { NavigationBar, NavigationContainer, NavigationItems, TitleBarItem } from './NavigationBar'; import SettingsHeader, { HeaderTitle } from './SettingsHeader'; import { @@ -38,8 +28,6 @@ export default function Support() { const connectedToDaemon = useSelector((state) => state.userInterface.connectedToDaemon); const isMacOs13OrNewer = useSelector((state) => state.userInterface.isMacOs13OrNewer); - const isMacOs14p6OrNewer = useSelector((state) => state.userInterface.isMacOs14p6OrNewer); - const showSubSettings = loginState.type === 'ok' && connectedToDaemon; const showSplitTunneling = window.env.platform !== 'darwin' || isMacOs13OrNewer; @@ -91,12 +79,6 @@ export default function Support() { <ApiAccessMethodsButton /> </Cell.Group> - {isMacOs14p6OrNewer ? ( - <Cell.Group> - <AppleServicesBypass /> - </Cell.Group> - ) : null} - <Cell.Group> <SupportButton /> <AppVersionButton /> @@ -283,54 +265,6 @@ function SupportButton() { ); } -function AppleServicesBypass() { - const { setAppleServicesBypass } = useAppContext(); - const appleServicesBypass = useSelector((state) => state.settings.appleServicesBypass); - - return ( - <AriaInputGroup> - <Cell.Container> - <AriaLabel> - <Cell.InputLabel> - {messages.pgettext('settings-view', 'Apple services bypass')} - </Cell.InputLabel> - </AriaLabel> - <AriaDetails> - <InfoButton> - <ModalMessage> - {messages.pgettext( - 'settings-view', - 'Some Apple services have an issue where the network settings set by Mullvad get ignored, this in turn blocks certain apps.', - )} - </ModalMessage> - <ModalMessage> - {messages.pgettext( - 'settings-view', - 'Enabling this setting allows traffic to specific Apple-owned networks to go outside of the VPN tunnel, allowing services like iMessage and FaceTime to work whilst using Mullvad.', - )} - </ModalMessage> - <ModalMessage> - {messages.pgettext( - 'settings-view', - 'Attention: this traffic will go outside of the VPN tunnel. Any application that tries to can bypass the VPN tunnel and send traffic to these Apple networks.', - )} - </ModalMessage> - <ModalMessage> - {messages.pgettext( - 'settings-view', - 'This a temporary fix and we are currently working on a long-term solution.', - )} - </ModalMessage> - </InfoButton> - </AriaDetails> - <AriaInput> - <Cell.Switch isOn={appleServicesBypass} onChange={setAppleServicesBypass} /> - </AriaInput> - </Cell.Container> - </AriaInputGroup> - ); -} - function DebugButton() { const history = useHistory(); const navigate = useCallback(() => history.push(RoutePath.debug), [history]); diff --git a/gui/src/renderer/redux/settings/actions.ts b/gui/src/renderer/redux/settings/actions.ts index 80ac3707c1..d2a3fb1c4a 100644 --- a/gui/src/renderer/redux/settings/actions.ts +++ b/gui/src/renderer/redux/settings/actions.ts @@ -93,11 +93,6 @@ export interface IUpdateDnsOptionsAction { dns: IDnsOptions; } -export interface ISetAppleServicesBypass { - type: 'SET_APPLE_SERVICES_BYPASS'; - enabled: boolean; -} - export interface IUpdateSplitTunnelingStateAction { type: 'UPDATE_SPLIT_TUNNELING_STATE'; enabled: boolean; @@ -150,7 +145,6 @@ export type SettingsAction = | IUpdateWireguardDaitaAction | IUpdateAutoStartAction | IUpdateDnsOptionsAction - | ISetAppleServicesBypass | IUpdateSplitTunnelingStateAction | ISetSplitTunnelingApplicationsAction | ISetObfuscationSettings @@ -279,13 +273,6 @@ function updateDnsOptions(dns: IDnsOptions): IUpdateDnsOptionsAction { }; } -function updateAppleServicesBypass(enabled: boolean): ISetAppleServicesBypass { - return { - type: 'SET_APPLE_SERVICES_BYPASS', - enabled, - }; -} - function updateSplitTunnelingState(enabled: boolean): IUpdateSplitTunnelingStateAction { return { type: 'UPDATE_SPLIT_TUNNELING_STATE', @@ -356,7 +343,6 @@ export default { updateWireguardDaita, updateAutoStart, updateDnsOptions, - updateAppleServicesBypass, updateSplitTunnelingState, setSplitTunnelingApplications, updateObfuscationSettings, diff --git a/gui/src/renderer/redux/settings/reducers.ts b/gui/src/renderer/redux/settings/reducers.ts index 7f806c248c..6eb595467b 100644 --- a/gui/src/renderer/redux/settings/reducers.ts +++ b/gui/src/renderer/redux/settings/reducers.ts @@ -114,7 +114,6 @@ export interface ISettingsReduxState { daita?: IDaitaSettings; }; dns: IDnsOptions; - appleServicesBypass: boolean; splitTunneling: boolean; splitTunnelingApplications: ISplitTunnelingApplication[]; obfuscationSettings: ObfuscationSettings; @@ -182,7 +181,6 @@ const initialState: ISettingsReduxState = { addresses: [], }, }, - appleServicesBypass: false, splitTunneling: false, splitTunnelingApplications: [], obfuscationSettings: { @@ -312,12 +310,6 @@ export default function ( dns: action.dns, }; - case 'SET_APPLE_SERVICES_BYPASS': - return { - ...state, - appleServicesBypass: action.enabled, - }; - case 'UPDATE_SPLIT_TUNNELING_STATE': return { ...state, diff --git a/gui/src/renderer/redux/userinterface/actions.ts b/gui/src/renderer/redux/userinterface/actions.ts index a5ee138464..238835318e 100644 --- a/gui/src/renderer/redux/userinterface/actions.ts +++ b/gui/src/renderer/redux/userinterface/actions.ts @@ -61,11 +61,6 @@ export interface ISetIsMacOs13OrNewer { isMacOs13OrNewer: boolean; } -export interface ISetIsMacOs14p6OrNewer { - type: 'SET_IS_MACOS14_6_OR_NEWER'; - isMacOs14p6OrNewer: boolean; -} - export type UserInterfaceAction = | IUpdateLocaleAction | IUpdateWindowArrowPositionAction @@ -78,8 +73,7 @@ export type UserInterfaceAction = | ISetForceShowChanges | ISetIsPerformingPostUpgrade | ISetSelectLocationView - | ISetIsMacOs13OrNewer - | ISetIsMacOs14p6OrNewer; + | ISetIsMacOs13OrNewer; function updateLocale(locale: string): IUpdateLocaleAction { return { @@ -166,13 +160,6 @@ function setIsMacOs13OrNewer(isMacOs13OrNewer: boolean): ISetIsMacOs13OrNewer { }; } -function setIsMacOs14p6OrNewer(isMacOs14p6OrNewer: boolean): ISetIsMacOs14p6OrNewer { - return { - type: 'SET_IS_MACOS14_6_OR_NEWER', - isMacOs14p6OrNewer, - }; -} - export default { updateLocale, updateWindowArrowPosition, @@ -186,5 +173,4 @@ export default { setIsPerformingPostUpgrade, setSelectLocationView, setIsMacOs13OrNewer, - setIsMacOs14p6OrNewer, }; diff --git a/gui/src/renderer/redux/userinterface/reducers.ts b/gui/src/renderer/redux/userinterface/reducers.ts index b245522cec..89427e9b06 100644 --- a/gui/src/renderer/redux/userinterface/reducers.ts +++ b/gui/src/renderer/redux/userinterface/reducers.ts @@ -16,7 +16,6 @@ export interface IUserInterfaceReduxState { isPerformingPostUpgrade: boolean; selectLocationView: LocationType; isMacOs13OrNewer: boolean; - isMacOs14p6OrNewer: boolean; } const initialState: IUserInterfaceReduxState = { @@ -31,7 +30,6 @@ const initialState: IUserInterfaceReduxState = { isPerformingPostUpgrade: false, selectLocationView: LocationType.exit, isMacOs13OrNewer: true, - isMacOs14p6OrNewer: true, }; export default function ( @@ -90,12 +88,6 @@ export default function ( isMacOs13OrNewer: action.isMacOs13OrNewer, }; - case 'SET_IS_MACOS14_6_OR_NEWER': - return { - ...state, - isMacOs14p6OrNewer: action.isMacOs14p6OrNewer, - }; - default: return state; } |
