mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-08-11 18:41:18 +10:00
Adding Mullvad to DNS (#4927)
* Update dns.json * Fix Mullvad DNS review issues * Add Mullvad secondary resolvers * Register DoH before changing adapter DNS * Report DNS failures to tweak workflow * Handle non-terminating DNS assignment failures * Preserve DNS fallback and document Mullvad options --------- Co-authored-by: Chris Titus <contact@christitus.com>
This commit is contained in:
co-authored by
Chris Titus
parent
afc3e1eec2
commit
0aa4ab3a40
@@ -71,7 +71,14 @@ function Invoke-WPFtweaksbutton {
|
||||
}
|
||||
|
||||
if ($dnsProvider -ne "Default") {
|
||||
Set-WinUtilDNS -DNSProvider $dnsProvider
|
||||
$dnsResult = @(Set-WinUtilDNS -DNSProvider $dnsProvider)
|
||||
if ($dnsResult[-1] -ne $true) {
|
||||
Set-WinUtilTweaksProgressIndicator -Visible $true -Label "DNS change failed" -Percent 100
|
||||
$sync.ProcessRunning = $false
|
||||
Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state "Error" -overlay "warning" }
|
||||
Write-WinUtilLog -Level "ERROR" -Component "Tweaks" -Message "Tweaks workflow stopped because the DNS change failed."
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
for ($i = 0; $i -lt $tweaks.Count; $i++) {
|
||||
|
||||
Reference in New Issue
Block a user