Add workaround for bulkBarrierPreWrite: unaligned arguments
This commit is contained in:
@@ -165,7 +165,7 @@ public struct DashboardView: View {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
await MainActor.run {
|
await MainActor.run {
|
||||||
alert = Alert(title: Text("Service Error"), message: Text(message))
|
alert = Alert(title: Text("Service Error"), message: Text(message!.value))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ public extension Profile {
|
|||||||
try write(remoteContent)
|
try write(remoteContent)
|
||||||
try await onProfileUpdated()
|
try await onProfileUpdated()
|
||||||
}
|
}
|
||||||
|
|
||||||
nonisolated func onProfileUpdated() async throws {
|
nonisolated func onProfileUpdated() async throws {
|
||||||
if await SharedPreferences.selectedProfileID.get() == id {
|
if await SharedPreferences.selectedProfileID.get() == id {
|
||||||
if let profile = try? await ExtensionProfile.load() {
|
if let profile = try? await ExtensionProfile.load() {
|
||||||
@@ -34,5 +34,4 @@ public extension Profile {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,12 +35,8 @@ public class ExtensionPlatformInterface: NSObject, LibboxPlatformInterfaceProtoc
|
|||||||
if options.getAutoRoute() {
|
if options.getAutoRoute() {
|
||||||
settings.mtu = NSNumber(value: options.getMTU())
|
settings.mtu = NSNumber(value: options.getMTU())
|
||||||
|
|
||||||
var error: NSError?
|
let dnsServer = try options.getDNSServerAddress()
|
||||||
let dnsServer = options.getDNSServerAddress(&error)
|
let dnsSettings = NEDNSSettings(servers: [dnsServer.value])
|
||||||
if let error {
|
|
||||||
throw error
|
|
||||||
}
|
|
||||||
let dnsSettings = NEDNSSettings(servers: [dnsServer])
|
|
||||||
dnsSettings.matchDomains = [""]
|
dnsSettings.matchDomains = [""]
|
||||||
dnsSettings.matchDomainsNoSearch = true
|
dnsSettings.matchDomainsNoSearch = true
|
||||||
settings.dnsSettings = dnsSettings
|
settings.dnsSettings = dnsSettings
|
||||||
|
|||||||
@@ -26,12 +26,8 @@ public class HTTPClient {
|
|||||||
request.setUserAgent(HTTPClient.userAgent)
|
request.setUserAgent(HTTPClient.userAgent)
|
||||||
try request.setURL(url)
|
try request.setURL(url)
|
||||||
let response = try request.execute()
|
let response = try request.execute()
|
||||||
var error: NSError?
|
let content = try response.getContent()
|
||||||
let contentString = response.getContentString(&error)
|
return content.value
|
||||||
if let error {
|
|
||||||
throw error
|
|
||||||
}
|
|
||||||
return contentString
|
|
||||||
}
|
}
|
||||||
|
|
||||||
deinit {
|
deinit {
|
||||||
|
|||||||
Reference in New Issue
Block a user