all: upd chlog, minimize diff to master

This commit is contained in:
Ainar Garipov 2022-02-07 20:35:33 +03:00
parent 659b2529bf
commit e276bd7a31
2 changed files with 58 additions and 10 deletions

View File

@ -19,6 +19,42 @@ and this project adheres to
- `windows/arm64` support ([#3057]). - `windows/arm64` support ([#3057]).
### Changed
- Response filtering is now performed using the record types of the answer
section of messages as opposed to the type of the question ([#4238]).
- Instead of adding the build time information, the build scripts now use the
standardized environment variable [`SOURCE_DATE_EPOCH`][repr] to add the date
of the commit from which the binary was built ([#4221]). This should simplify
reproducible builds for package maintainers and those who compile their own
AdGuard Home.
- The setting `local_domain_name` is now in the `dhcp` block in the
configuration file to avoid confusion ([#3367]).
- The `dns.bogus_nxdomain` configuration file parameter now supports CIDR
notation alongside IP addresses ([#1730]).
#### Configuration Changes
In this release, the schema version has changed from 12 to 13.
- Parameter `local_domain_name`, which in schema versions 12 and earlier used to
be a part of the `dns` object, is now a part of the `dhcp` object:
```yaml
# BEFORE:
'dns':
# …
'local_domain_name': 'lan'
# AFTER:
'dhcp':
# …
'local_domain_name': 'lan'
```
To rollback this change, move the parameter back into `dns` and change the
`schema_version` back to `12`.
### Deprecated ### Deprecated
- Go 1.17 support. v0.109.0 will require at least Go 1.18 to build. - Go 1.17 support. v0.109.0 will require at least Go 1.18 to build.
@ -27,7 +63,19 @@ and this project adheres to
- Go 1.16 support. - Go 1.16 support.
### Security
- Weaker cipher suites that use the CBC (cipher block chaining) mode of
operation have been disabled ([#2993]).
[#1730]: https://github.com/AdguardTeam/AdGuardHome/issues/1730
[#2993]: https://github.com/AdguardTeam/AdGuardHome/issues/2993
[#3057]: https://github.com/AdguardTeam/AdGuardHome/issues/3057 [#3057]: https://github.com/AdguardTeam/AdGuardHome/issues/3057
[#3367]: https://github.com/AdguardTeam/AdGuardHome/issues/3367
[#4221]: https://github.com/AdguardTeam/AdGuardHome/issues/4221
[#4238]: https://github.com/AdguardTeam/AdGuardHome/issues/4238
[repr]: https://reproducible-builds.org/docs/source-date-epoch/

View File

@ -20,17 +20,19 @@ func DiscardLogOutput(m *testing.M) {
// ReplaceLogWriter moves logger output to w and uses Cleanup method of t to // ReplaceLogWriter moves logger output to w and uses Cleanup method of t to
// revert changes. // revert changes.
func ReplaceLogWriter(t *testing.T, w io.Writer) { func ReplaceLogWriter(t testing.TB, w io.Writer) {
stdWriter := log.Writer() t.Helper()
t.Cleanup(func() {
log.SetOutput(stdWriter) prev := log.Writer()
}) t.Cleanup(func() { log.SetOutput(prev) })
log.SetOutput(w) log.SetOutput(w)
} }
// ReplaceLogLevel sets logging level to l and uses Cleanup method of t to // ReplaceLogLevel sets logging level to l and uses Cleanup method of t to
// revert changes. // revert changes.
func ReplaceLogLevel(t *testing.T, l log.Level) { func ReplaceLogLevel(t testing.TB, l log.Level) {
t.Helper()
switch l { switch l {
case log.INFO, log.DEBUG, log.ERROR: case log.INFO, log.DEBUG, log.ERROR:
// Go on. // Go on.
@ -38,9 +40,7 @@ func ReplaceLogLevel(t *testing.T, l log.Level) {
t.Fatalf("wrong l value (must be one of %v, %v, %v)", log.INFO, log.DEBUG, log.ERROR) t.Fatalf("wrong l value (must be one of %v, %v, %v)", log.INFO, log.DEBUG, log.ERROR)
} }
stdLevel := log.GetLevel() prev := log.GetLevel()
t.Cleanup(func() { t.Cleanup(func() { log.SetLevel(prev) })
log.SetLevel(stdLevel)
})
log.SetLevel(l) log.SetLevel(l)
} }