blob: acbd721ca56d42c578ca7d9a8cc221fc96f75247 (
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
26
|
//
// ProtocolObfuscationStub.swift
// PacketTunnelCoreTests
//
// Created by Marco Nikic on 2023-11-20.
// Copyright © 2025 Mullvad VPN AB. All rights reserved.
//
@testable import MullvadREST
@testable import MullvadSettings
@testable import MullvadTypes
@testable import PacketTunnelCore
struct ProtocolObfuscationStub: ProtocolObfuscation {
var remotePort: UInt16 { 42 }
func obfuscate(
_ endpoint: MullvadEndpoint,
relayFeatures: REST.ServerRelay.Features?,
obfuscationMethod: WireGuardObfuscationState
) -> ProtocolObfuscationResult {
.init(endpoint: endpoint, method: .off)
}
var transportLayer: TransportLayer? { .udp }
}
|