summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadRustRuntime
diff options
context:
space:
mode:
authorBug Magnet <marco.nikic@mullvad.net>2024-11-05 10:13:35 +0100
committerBug Magnet <marco.nikic@mullvad.net>2024-11-26 11:03:54 +0100
commitdd66d1246b005594a16841ec945bf98914e80899 (patch)
tree4337bf013ef0591dfee8fbf0fecf4f0401b036aa /ios/MullvadRustRuntime
parent038be31659eba06001e15185256bd64ee4e105bc (diff)
downloadmullvadvpn-dd66d1246b005594a16841ec945bf98914e80899.tar.xz
mullvadvpn-dd66d1246b005594a16841ec945bf98914e80899.zip
Allow override of encrypted DNS domain name
Diffstat (limited to 'ios/MullvadRustRuntime')
-rw-r--r--ios/MullvadRustRuntime/EncryptedDNSProxy.swift2
-rw-r--r--ios/MullvadRustRuntime/include/mullvad_rust_runtime.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/ios/MullvadRustRuntime/EncryptedDNSProxy.swift b/ios/MullvadRustRuntime/EncryptedDNSProxy.swift
index 690e2459d0..5179cbc51b 100644
--- a/ios/MullvadRustRuntime/EncryptedDNSProxy.swift
+++ b/ios/MullvadRustRuntime/EncryptedDNSProxy.swift
@@ -20,7 +20,7 @@ public class EncryptedDNSProxy {
private let state: OpaquePointer
public init() {
- state = encrypted_dns_proxy_init()
+ state = encrypted_dns_proxy_init("frakta.eu")
proxyConfig = ProxyHandle(context: nil, port: 0)
}
diff --git a/ios/MullvadRustRuntime/include/mullvad_rust_runtime.h b/ios/MullvadRustRuntime/include/mullvad_rust_runtime.h
index 26904b89df..ad13d1f6e0 100644
--- a/ios/MullvadRustRuntime/include/mullvad_rust_runtime.h
+++ b/ios/MullvadRustRuntime/include/mullvad_rust_runtime.h
@@ -34,7 +34,7 @@ extern const uint16_t CONFIG_SERVICE_PORT;
/**
* Initializes a valid pointer to an instance of `EncryptedDnsProxyState`.
*/
-struct EncryptedDnsProxyState *encrypted_dns_proxy_init(void);
+struct EncryptedDnsProxyState *encrypted_dns_proxy_init(const char *domain_name);
/**
* This must be called only once to deallocate `EncryptedDnsProxyState`.