From 3abaca1d90c7ff2ced25072fb68d6b085b0718a5 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 29 Mar 2021 13:37:39 +0200 Subject: [PATCH] Improve System DNS matching on Windows --- process/profile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process/profile.go b/process/profile.go index 8f64b91e..37cfcbd5 100644 --- a/process/profile.go +++ b/process/profile.go @@ -59,7 +59,7 @@ func (p *Process) GetProfile(ctx context.Context) (changed bool, err error) { switch runtime.GOOS { case "windows": if (p.Path == `C:\Windows\System32\svchost.exe` || p.Path == `C:\Windows\system32\svchost.exe`) && - (strings.Contains(p.SpecialDetail, "Dnscache") || strings.Contains(p.CmdLine, "-k NetworkService")) { + (strings.Contains(p.SpecialDetail, "Dnscache") || strings.Contains(p.CmdLine, "-s Dnscache")) { profileID = profile.SystemResolverProfileID } case "linux":