blob: 3dfaeb7c69b4a52ca1faea28e51e3fca9083bca5 (
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
|
//
// Socks5Configuration.swift
// MullvadTransport
//
// Created by pronebird on 23/10/2023.
// Copyright © 2025 Mullvad VPN AB. All rights reserved.
//
import Foundation
import MullvadTypes
/// Socks5 configuration.
/// - See: ``URLSessionSocks5Transport``
public struct Socks5Configuration: Equatable, Sendable {
/// The socks proxy endpoint.
public var proxyEndpoint: AnyIPEndpoint
public var username: String?
public var password: String?
public init(proxyEndpoint: AnyIPEndpoint, username: String? = nil, password: String? = nil) {
self.proxyEndpoint = proxyEndpoint
self.username = username
self.password = password
}
}
|