Skip to content

Commit a9fa6a5

Browse files
committed
Remove hardcoded params
1 parent a87a789 commit a9fa6a5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ios/MullvadVPNUITests/MullvadApi.swift

+2-4
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,9 @@ class InitMutableBufferError: Error {
3030

3131
class MullvadApi {
3232
private var clientContext: IosMullvadApiClient
33-
init() throws {
33+
init(apiAddress: String, hostname: String) throws {
3434
clientContext = IosMullvadApiClient(ptr: nil)
35-
// TODO: read the API address and hostname from a config file
36-
let apiAddress = "45.83.223.193:443"
37-
let hostname = "api.mullvad.net"
35+
3836
let result = mullvad_api_initialize_api_runtime(
3937
&clientContext,
4038
apiAddress,

0 commit comments

Comments
 (0)