mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Improve System DNS matching on Windows
This commit is contained in:
parent
986e868c27
commit
3abaca1d90
1 changed files with 1 additions and 1 deletions
|
@ -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":
|
||||
|
|
Loading…
Add table
Reference in a new issue