summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadREST/RESTDefaults.swift
blob: e9e8c50e134349455121ef8291afbeaddfe20617 (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
//
//  RESTDefaults.swift
//  MullvadREST
//
//  Created by Sajad Vishkai on 2022-10-17.
//  Copyright © 2022 Mullvad VPN AB. All rights reserved.
//

import Foundation
import MullvadTypes

extension REST {
    /// Default API hostname.
    public static let defaultAPIHostname = "api.mullvad.net"

    /// Default API endpoint.
    public static let defaultAPIEndpoint = AnyIPEndpoint(string: "45.83.223.196:443")!

    /// Disables API IP address cache when in staging environment and sticks to using default API endpoint instead.
    public static let isStagingEnvironment = false

    /// Default network timeout for API requests.
    public static let defaultAPINetworkTimeout: Duration = .seconds(10)
}