Pull request 2290: 7250-custom-client-cache

Updates #7250.

Squashed commit of the following:

commit 062660f17e
Author: Stanislav Chzhen <s.chzhen@adguard.com>
Date:   Wed Oct 9 17:42:17 2024 +0300

    all: upd chlog

commit 66fa039ede
Author: Stanislav Chzhen <s.chzhen@adguard.com>
Date:   Wed Oct 9 17:30:58 2024 +0300

    home: custom client cache
This commit is contained in:
Stanislav Chzhen 2024-10-10 16:33:03 +03:00
parent 6363f8a2e7
commit 73ff401b0f
2 changed files with 7 additions and 0 deletions

View file

@ -31,10 +31,12 @@ NOTE: Add new changes BELOW THIS COMMENT.
### Fixed
- Custom client cache ([#7250]).
- Missing runtime clients with information from the system hosts file on first
AdGuard Home start ([#7315]).
[#6818]: https://github.com/AdguardTeam/AdGuardHome/issues/6818
[#7250]: https://github.com/AdguardTeam/AdGuardHome/issues/7250
[#7315]: https://github.com/AdguardTeam/AdGuardHome/issues/7315
<!--

View file

@ -417,6 +417,11 @@ func (clients *clientsContainer) UpstreamConfigByID(
)
c.UpstreamConfig = conf
err = clients.storage.Update(c.Name, c)
if err != nil {
return nil, fmt.Errorf("setting upstream config: %w", err)
}
return conf, nil
}