mirror of
https://github.com/kkebo/DNSecure.git
synced 2026-03-11 08:54:36 +00:00
parent
d927dc2179
commit
aae4848ed6
1 changed files with 5 additions and 1 deletions
|
|
@ -79,7 +79,11 @@ struct ContentView {
|
|||
manager.dnsSettings = server.configuration.toDNSSettings()
|
||||
manager.saveToPreferences { saveError in
|
||||
self.updateStatus()
|
||||
if let saveError = saveError {
|
||||
if let saveError = saveError as NSError? {
|
||||
guard saveError.domain != "NEConfigurationErrorDomain"
|
||||
|| saveError.code != 9 else {
|
||||
return
|
||||
}
|
||||
logger.error("\(saveError.localizedDescription)")
|
||||
self.alert("Save Error", saveError.localizedDescription)
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in a new issue