Skip to content

Commit c41af27

Browse files
committed
Pull request 2366: AG-40702-fix-cache-clear
Merge in DNS/adguard-home from AG-40702-fix-cache-clear to master Squashed commit of the following: commit 542a794 Author: Stanislav Chzhen <[email protected]> Date: Wed Mar 12 18:16:35 2025 +0300 all: fix cache clear
1 parent ee91a60 commit c41af27

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ NOTE: Add new changes BELOW THIS COMMENT.
2424

2525
### Fixed
2626

27+
- Clearing the DNS cache on the *DNS settings* page now includes both global cache and custom client cache.
28+
2729
- Invalid ICMPv6 Router Advertisement messages ([#7547]).
2830

2931
- Disabled button for autofilled login form.

internal/client/upstreammanager.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ func (m *upstreamManager) isConfigChanged(cliConf *customUpstreamConfig) (ok boo
153153
// upstream configuration.
154154
func (m *upstreamManager) clearUpstreamCache() {
155155
for _, c := range m.uidToCustomConf {
156-
c.proxyConf.ClearCache()
156+
if c.proxyConf != nil {
157+
c.proxyConf.ClearCache()
158+
}
157159
}
158160
}
159161

0 commit comments

Comments
 (0)