blob: 3f7d1a8ea44d1e093aa9ac770826b5cc5bfe82d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
//
// MultihopSettings.swift
// MullvadSettings
//
// Created by Mojgan on 2024-04-26.
// Copyright © 2025 Mullvad VPN AB. All rights reserved.
//
import Foundation
import MullvadTypes
/// Whether Multi-hop is enabled
public enum MultihopState: Codable, Sendable {
case on
case off
public var isEnabled: Bool {
get {
self == .on
}
set {
self = newValue ? .on : .off
}
}
}
|