Skip to content

Commit

Permalink
Merge branch 'no-relays-when-in-blocked-state-triggered-by-daita-and-…
Browse files Browse the repository at this point in the history
…ios-864'
  • Loading branch information
buggmagnet committed Oct 10, 2024
2 parents 9f187b1 + 30787e6 commit 368961a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ios/MullvadSettings/TunnelSettingsV6.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public struct TunnelSettingsV6: Codable, Equatable, TunnelSettings {
/// Whether Post Quantum exchanges are enabled.
public var tunnelQuantumResistance: TunnelQuantumResistance

/// Whether Multi-hop is enabled.
/// Whether Multihop is enabled.
public var tunnelMultihopState: MultihopState

/// DAITA settings.
Expand Down
6 changes: 4 additions & 2 deletions ios/MullvadVPN/Coordinators/LocationCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ class LocationCoordinator: Coordinator, Presentable, Presenting {
}

func start() {
let startContext: LocationViewControllerWrapper.MultihopContext =
if case .noRelaysSatisfyingDaitaConstraints = tunnelManager.tunnelStatus.observedState
var startContext: LocationViewControllerWrapper.MultihopContext = .exit
if tunnelManager.settings.tunnelMultihopState.isEnabled {
startContext = if case .noRelaysSatisfyingDaitaConstraints = tunnelManager.tunnelStatus.observedState
.blockedState?.reason { .entry } else { .exit }
}

let locationViewControllerWrapper = LocationViewControllerWrapper(
customListRepository: customListRepository,
Expand Down

0 comments on commit 368961a

Please sign in to comment.