Skip to content

Commit

Permalink
Fix DNS settings
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Nov 4, 2024
1 parent 2b33d09 commit c72167b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Library/Network/ExtensionPlatformInterface.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ public class ExtensionPlatformInterface: NSObject, LibboxPlatformInterfaceProtoc
if let error {
throw error
}
settings.dnsSettings = NEDNSSettings(servers: [dnsServer])
let dnsSettings = NEDNSSettings(servers: [dnsServer])
dnsSettings.matchDomains = [""]
dnsSettings.matchDomainsNoSearch = true
settings.dnsSettings = dnsSettings

var ipv4Address: [String] = []
var ipv4Mask: [String] = []
Expand Down

0 comments on commit c72167b

Please sign in to comment.