From af5bc625b499da3fea83ec18b2335fe1dd3091e0 Mon Sep 17 00:00:00 2001 From: Stanislav Chzhen Date: Fri, 11 Jul 2025 19:20:56 +0300 Subject: [PATCH] Pull request 2437: 7922-fix-doh-client-id Updates #7922. Squashed commit of the following: commit a8e188f0d520f49a180719d431ef4490229e0a80 Author: Stanislav Chzhen Date: Fri Jul 11 19:08:18 2025 +0300 home: imp code commit ed765f3f5acc126819f70a617647bbd898370710 Author: Stanislav Chzhen Date: Fri Jul 11 18:42:04 2025 +0300 home: imp code commit f110ae4976e8f0e919fc03b3ebd4be68e0e6c94c Author: Stanislav Chzhen Date: Fri Jul 11 18:26:33 2025 +0300 home: fix doh client id --- internal/home/authhttp.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/home/authhttp.go b/internal/home/authhttp.go index b8c7b551..bc8e7068 100644 --- a/internal/home/authhttp.go +++ b/internal/home/authhttp.go @@ -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",