Add workaround for bulkBarrierPreWrite: unaligned arguments

This commit is contained in:
世界
2024-12-14 20:12:26 +08:00
parent fe7dd4322f
commit ba6f99bc34
4 changed files with 6 additions and 15 deletions
@@ -35,12 +35,8 @@ public class ExtensionPlatformInterface: NSObject, LibboxPlatformInterfaceProtoc
if options.getAutoRoute() {
settings.mtu = NSNumber(value: options.getMTU())
var error: NSError?
let dnsServer = options.getDNSServerAddress(&error)
if let error {
throw error
}
let dnsSettings = NEDNSSettings(servers: [dnsServer])
let dnsServer = try options.getDNSServerAddress()
let dnsSettings = NEDNSSettings(servers: [dnsServer.value])
dnsSettings.matchDomains = [""]
dnsSettings.matchDomainsNoSearch = true
settings.dnsSettings = dnsSettings