Pull request 2437: 7922-fix-doh-client-id

Updates #7922.

Squashed commit of the following:

commit a8e188f0d520f49a180719d431ef4490229e0a80
Author: Stanislav Chzhen <s.chzhen@adguard.com>
Date:   Fri Jul 11 19:08:18 2025 +0300

    home: imp code

commit ed765f3f5acc126819f70a617647bbd898370710
Author: Stanislav Chzhen <s.chzhen@adguard.com>
Date:   Fri Jul 11 18:42:04 2025 +0300

    home: imp code

commit f110ae4976e8f0e919fc03b3ebd4be68e0e6c94c
Author: Stanislav Chzhen <s.chzhen@adguard.com>
Date:   Fri Jul 11 18:26:33 2025 +0300

    home: fix doh client id
This commit is contained in:
Stanislav Chzhen 2025-07-11 19:20:56 +03:00
parent bd3774ed69
commit af5bc625b4

View File

@ -288,9 +288,13 @@ func isPublicResource(p string) (ok bool) {
panic(fmt.Errorf("bad login pattern: %w", err))
}
// TODO(s.chzhen): Implement a more strict version.
if strings.HasPrefix(p, "/dns-query/") {
return true
}
paths := []string{
"/dns-query",
"/dns-query/",
"/control/login",
"/apple/doh.mobileconfig",
"/apple/dot.mobileconfig",