Skip to content

Commit fbc0d98

Browse files
committed
all: partially sync with master; upd chlog
1 parent 48d1c67 commit fbc0d98

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+557
-210
lines changed

Diff for: .github/ISSUE_TEMPLATE/bug.yml

+3
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@
102102
the best way. For crashes, please provide a full failure log.
103103
'label': 'Action'
104104
'value': |
105+
Replace the following command with the one you're calling or a
106+
description of the failing action:
107+
105108
```sh
106109
nslookup -debug -type=a 'www.example.com' '$YOUR_AGH_ADDRESS'
107110
```

Diff for: .github/workflows/build.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'name': 'build'
22

33
'env':
4-
'GO_VERSION': '1.20.12'
4+
'GO_VERSION': '1.21.8'
55
'NODE_VERSION': '16'
66

77
'on':
@@ -101,7 +101,10 @@
101101
- 'name': 'Set up Docker Buildx'
102102
'uses': 'docker/setup-buildx-action@v1'
103103
- 'name': 'Run snapshot build'
104-
'run': 'make SIGN=0 VERBOSE=1 build-release build-docker'
104+
# Set a custom version string, since the checkout@v2 action does not seem
105+
# to know about the master branch, while the version script uses it to
106+
# count the number of commits within the branch.
107+
'run': 'make SIGN=0 VERBOSE=1 VERSION="v0.0.0-github" build-release build-docker'
105108

106109
'notify':
107110
'needs':

Diff for: .github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'name': 'lint'
22

33
'env':
4-
'GO_VERSION': '1.20.12'
4+
'GO_VERSION': '1.21.8'
55

66
'on':
77
'push':

Diff for: CHANGELOG.md

+79-6
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,93 @@ and this project adheres to
1414
<!--
1515
## [v0.108.0] - TBA
1616
17-
## [v0.107.45] - 2024-03-05 (APPROX.)
17+
## [v0.107.46] - 2024-03-13 (APPROX.)
1818
19-
See also the [v0.107.45 GitHub milestone][ms-v0.107.45].
19+
See also the [v0.107.46 GitHub milestone][ms-v0.107.46].
2020
21-
[ms-v0.107.45]: https://github.com/AdguardTeam/AdGuardHome/milestone/80?closed=1
21+
[ms-v0.107.46]: https://github.com/AdguardTeam/AdGuardHome/milestone/81?closed=1
2222
2323
NOTE: Add new changes BELOW THIS COMMENT.
2424
-->
2525

26+
### Added
27+
28+
- Ability to disable the use of system hosts file information for query
29+
resolution ([#6610]).
30+
- Ability to define custom directories for storage of query log files and
31+
statistics ([#5992]).
32+
33+
### Fixed
34+
35+
- Incorrect tracking of the system hosts file's changes ([#6711]).
36+
37+
[#5992]: https://github.com/AdguardTeam/AdGuardHome/issues/5992
38+
[#6610]: https://github.com/AdguardTeam/AdGuardHome/issues/6610
39+
[#6711]: https://github.com/AdguardTeam/AdGuardHome/issues/6711
40+
2641
<!--
2742
NOTE: Add new changes ABOVE THIS COMMENT.
2843
-->
2944

3045

3146

47+
## [v0.107.45] - 2024-03-06
48+
49+
See also the [v0.107.45 GitHub milestone][ms-v0.107.45].
50+
51+
### Security
52+
53+
- Go version has been updated to prevent the possibility of exploiting the Go
54+
vulnerabilities fixed in [Go 1.21.8][go-1.21.8].
55+
56+
### Added
57+
58+
- Context menu item in the Query Log to add a Client to the Persistent client
59+
list ([#6679]).
60+
61+
### Changed
62+
63+
- Starting with this release our scripts are using Go's [forward compatibility
64+
mechanism][go-toolchain] for updating the Go version.
65+
66+
**Important note for porters:** This change means that if your `go` version
67+
is 1.21+ but is different from the one required by AdGuard Home, the `go` tool
68+
will automatically download the required version.
69+
70+
If you want to use the version installed on your builder, run:
71+
72+
```sh
73+
go get go@$YOUR_VERSION
74+
go mod tidy
75+
```
76+
77+
and call `make` with `GOTOOLCHAIN=local`.
78+
79+
### Deprecated
80+
81+
- Go 1.21 support. Future versions will require at least Go 1.22 to build.
82+
83+
### Fixed
84+
85+
- Missing IP addresses in logs when querying for domain names from the ignore
86+
lists.
87+
- Blank page after resetting access clients ([#6634]).
88+
- Wrong algorithm for caching bootstrapped upstream addresses ([#6723]).
89+
90+
### Removed
91+
92+
- Go 1.20 support, as it has reached end of life.
93+
94+
[#6634]: https://github.com/AdguardTeam/AdGuardHome/issues/6634
95+
[#6679]: https://github.com/AdguardTeam/AdGuardHome/issues/6679
96+
[#6723]: https://github.com/AdguardTeam/AdGuardHome/issues/6723
97+
98+
[go-1.21.8]: https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg
99+
[go-toolchain]: https://go.dev/blog/toolchain
100+
[ms-v0.107.45]: https://github.com/AdguardTeam/AdGuardHome/milestone/80?closed=1
101+
102+
103+
32104
## [v0.107.44] - 2024-02-06
33105

34106
See also the [v0.107.44 GitHub milestone][ms-v0.107.44].
@@ -2759,11 +2831,12 @@ See also the [v0.104.2 GitHub milestone][ms-v0.104.2].
27592831

27602832

27612833
<!--
2762-
[Unreleased]: https://github.com/AdguardTeam/AdGuardHome/compare/v0.107.45...HEAD
2763-
[v0.107.45]: https://github.com/AdguardTeam/AdGuardHome/compare/v0.107.44...v0.107.45
2834+
[Unreleased]: https://github.com/AdguardTeam/AdGuardHome/compare/v0.107.46...HEAD
2835+
[v0.107.46]: https://github.com/AdguardTeam/AdGuardHome/compare/v0.107.45...v0.107.46
27642836
-->
27652837

2766-
[Unreleased]: https://github.com/AdguardTeam/AdGuardHome/compare/v0.107.44...HEAD
2838+
[Unreleased]: https://github.com/AdguardTeam/AdGuardHome/compare/v0.107.45...HEAD
2839+
[v0.107.45]: https://github.com/AdguardTeam/AdGuardHome/compare/v0.107.44...v0.107.45
27672840
[v0.107.44]: https://github.com/AdguardTeam/AdGuardHome/compare/v0.107.43...v0.107.44
27682841
[v0.107.43]: https://github.com/AdguardTeam/AdGuardHome/compare/v0.107.42...v0.107.43
27692842
[v0.107.42]: https://github.com/AdguardTeam/AdGuardHome/compare/v0.107.41...v0.107.42

Diff for: Makefile

+8-11
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Makefile. Bump this number every time a significant change is made to
99
# this Makefile.
1010
#
11-
# AdGuard-Project-Version: 2
11+
# AdGuard-Project-Version: 4
1212

1313
# Don't name these macros "GO" etc., because GNU Make apparently makes
1414
# them exported environment variables with the literal value of
@@ -27,6 +27,7 @@ DIST_DIR = dist
2727
GOAMD64 = v1
2828
GOPROXY = https://goproxy.cn|https://proxy.golang.org|direct
2929
GOSUMDB = sum.golang.google.cn
30+
GOTOOLCHAIN = go1.21.8
3031
3132
GPG_KEY_PASSPHRASE = not-a-real-password
3233
NPM = npm
@@ -56,15 +57,16 @@ BUILD_RELEASE_DEPS_0 = deps js-build
5657
BUILD_RELEASE_DEPS_1 = go-deps
5758

5859
ENV = env\
59-
COMMIT='$(COMMIT)'\
6060
CHANNEL='$(CHANNEL)'\
61-
GPG_KEY='$(GPG_KEY)'\
62-
GPG_KEY_PASSPHRASE='$(GPG_KEY_PASSPHRASE)'\
61+
COMMIT='$(COMMIT)'\
6362
DIST_DIR='$(DIST_DIR)'\
6463
GO="$(GO.MACRO)"\
6564
GOAMD64="$(GOAMD64)"\
6665
GOPROXY='$(GOPROXY)'\
6766
GOSUMDB='$(GOSUMDB)'\
67+
GOTOOLCHAIN='$(GOTOOLCHAIN)'\
68+
GPG_KEY='$(GPG_KEY)'\
69+
GPG_KEY_PASSPHRASE='$(GPG_KEY_PASSPHRASE)'\
6870
PATH="$${PWD}/bin:$$( "$(GO.MACRO)" env GOPATH )/bin:$${PATH}"\
6971
RACE='$(RACE)'\
7072
SIGN='$(SIGN)'\
@@ -117,6 +119,8 @@ go-tools: ; $(ENV) "$(SHELL)" ./scripts/make/go-tools.sh
117119
# targets.
118120
go-test: ; $(ENV) RACE='1' "$(SHELL)" ./scripts/make/go-test.sh
119121

122+
go-upd-tools: ; $(ENV) "$(SHELL)" ./scripts/make/go-upd-tools.sh
123+
120124
go-check: go-tools go-lint go-test
121125

122126
# A quick check to make sure that all supported operating systems can be
@@ -132,10 +136,3 @@ openapi-lint: ; cd ./openapi/ && $(YARN) test
132136
openapi-show: ; cd ./openapi/ && $(YARN) start
133137

134138
txt-lint: ; $(ENV) "$(SHELL)" ./scripts/make/txt-lint.sh
135-
136-
# TODO(a.garipov): Consider adding to scripts/ and the common project
137-
# structure.
138-
go-upd-tools:
139-
cd ./internal/tools/ &&\
140-
"$(GO.MACRO)" get -u &&\
141-
"$(GO.MACRO)" mod tidy

Diff for: bamboo-specs/release.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Make sure to sync any changes with the branch overrides below.
88
'variables':
99
'channel': 'edge'
10-
'dockerGo': 'adguard/golang-ubuntu:7.6'
10+
'dockerGo': 'adguard/golang-ubuntu:8.1'
1111

1212
'stages':
1313
- 'Build frontend':
@@ -272,7 +272,7 @@
272272
# need to build a few of these.
273273
'variables':
274274
'channel': 'beta'
275-
'dockerGo': 'adguard/golang-ubuntu:7.6'
275+
'dockerGo': 'adguard/golang-ubuntu:8.1'
276276
# release-vX.Y.Z branches are the branches from which the actual final
277277
# release is built.
278278
- '^release-v[0-9]+\.[0-9]+\.[0-9]+':
@@ -287,4 +287,4 @@
287287
# are the ones that actually get released.
288288
'variables':
289289
'channel': 'release'
290-
'dockerGo': 'adguard/golang-ubuntu:7.6'
290+
'dockerGo': 'adguard/golang-ubuntu:8.1'

Diff for: bamboo-specs/snapcraft.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Make sure to sync any changes with the branch overrides below.
1111
'variables':
1212
'channel': 'edge'
13-
'dockerGo': 'adguard/golang-ubuntu:7.6'
13+
'dockerGo': 'adguard/golang-ubuntu:8.1'
1414
'snapcraftChannel': 'edge'
1515

1616
'stages':
@@ -191,7 +191,7 @@
191191
# need to build a few of these.
192192
'variables':
193193
'channel': 'beta'
194-
'dockerGo': 'adguard/golang-ubuntu:7.6'
194+
'dockerGo': 'adguard/golang-ubuntu:8.1'
195195
'snapcraftChannel': 'beta'
196196
# release-vX.Y.Z branches are the branches from which the actual final
197197
# release is built.
@@ -207,5 +207,5 @@
207207
# are the ones that actually get released.
208208
'variables':
209209
'channel': 'release'
210-
'dockerGo': 'adguard/golang-ubuntu:7.6'
210+
'dockerGo': 'adguard/golang-ubuntu:8.1'
211211
'snapcraftChannel': 'candidate'

Diff for: bamboo-specs/test.yaml

+16-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
'key': 'AHBRTSPECS'
66
'name': 'AdGuard Home - Build and run tests'
77
'variables':
8-
'dockerGo': 'adguard/golang-ubuntu:7.6'
8+
'dockerGo': 'adguard/golang-ubuntu:8.1'
9+
'channel': 'development'
910

1011
'stages':
1112
- 'Tests':
@@ -73,7 +74,7 @@
7374
make\
7475
ARCH="amd64"\
7576
OS="windows darwin linux"\
76-
CHANNEL="development"\
77+
CHANNEL=${bamboo.channel}\
7778
SIGN=0\
7879
PARALLELISM=1\
7980
VERBOSE=2\
@@ -115,3 +116,16 @@
115116
'labels': []
116117
'other':
117118
'concurrent-build-plugin': 'system-default'
119+
120+
'branch-overrides':
121+
# rc-vX.Y.Z branches are the release candidate branches. They are created
122+
# from the release branch and are used to build the release candidate
123+
# images.
124+
- '^rc-v[0-9]+\.[0-9]+\.[0-9]+':
125+
# Build betas on release branches manually.
126+
'triggers': []
127+
# Set the default release channel on the release branch to beta, as we
128+
# may need to build a few of these.
129+
'variables':
130+
'dockerGo': 'adguard/golang-ubuntu:8.1'
131+
'channel': 'candidate'

Diff for: client/src/__locales/be.json

+3
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,15 @@
236236
"updated_upstream_dns_toast": "Upstream DNS-серверы абноўлены",
237237
"dns_test_ok_toast": "Паказаныя серверы DNS працуюць карэктна",
238238
"dns_test_not_ok_toast": "Сервер «{{key}}»: немагчыма выкарыстоўваць, праверце слушнасць напісання",
239+
"dns_test_parsing_error_toast": "Раздзел {{section}}: радок {{line}}: немагчыма выкарыстоўваць, праверце слушнасць напісання",
239240
"dns_test_warning_toast": "Upstream «{{key}}» не адказвае на тэставыя запыты і можа не працаваць належным чынам",
240241
"unblock": "Адблакаваць",
241242
"block": "Заблакаваць",
242243
"disallow_this_client": "Забараніць доступ гэтаму кліенту",
243244
"allow_this_client": "Дазволіць доступ гэтаму кліенту",
244245
"block_for_this_client_only": "Заблакаваць толькі для гэтага кліента",
245246
"unblock_for_this_client_only": "Адблакаваць толькі для гэтага кліента",
247+
"add_persistent_client": "Дадаць у захаваныя кліенты",
246248
"time_table_header": "Час",
247249
"date": "Дата",
248250
"domain_name_table_header": "Дамен",
@@ -462,6 +464,7 @@
462464
"form_add_id": "Дадаць ідэнтыфікатар",
463465
"form_client_name": "Увядзіце імя кліента",
464466
"name": "Назва",
467+
"client_name": "Кліент {{id}}",
465468
"client_global_settings": "Выкарыстаць глабальныя налады",
466469
"client_deleted": "Кліент «{{key}}» паспяхова выдалены",
467470
"client_added": "Кліент «{{key}}» паспяхова дададзены",

Diff for: client/src/__locales/cs.json

+3
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,15 @@
236236
"updated_upstream_dns_toast": "Odchozí servery byly úspěšně uloženy",
237237
"dns_test_ok_toast": "Specifikované DNS servery pracují správně",
238238
"dns_test_not_ok_toast": "Server \"{{key}}\": nemohl být použit, zkontrolujte, zda jste ho správně napsali",
239+
"dns_test_parsing_error_toast": "Sekce {{section}}: řádek {{line}}: nelze použít, zkontrolujte prosím, zda jste ho správně napsali",
239240
"dns_test_warning_toast": "Upstream \"{{key}}\" neodpovídá na testovací požadavky a nemusí fungovat správně",
240241
"unblock": "Odblokovat",
241242
"block": "Blokovat",
242243
"disallow_this_client": "Blokovat tohoto klienta",
243244
"allow_this_client": "Povolit tohoto klienta",
244245
"block_for_this_client_only": "Blokovat pouze pro tohoto klienta",
245246
"unblock_for_this_client_only": "Odblokovat pouze pro tohoto klienta",
247+
"add_persistent_client": "Přidat jako trvalého klienta",
246248
"time_table_header": "Čas",
247249
"date": "Datum",
248250
"domain_name_table_header": "Název domény",
@@ -465,6 +467,7 @@
465467
"form_add_id": "Přidat identifikátor",
466468
"form_client_name": "Zadejte název klienta",
467469
"name": "Název",
470+
"client_name": "Klient {{id}}",
468471
"client_global_settings": "Použít globální nastavení",
469472
"client_deleted": "Klient \"{{key}}\" byl úspěšně odstraněn",
470473
"client_added": "Klient \"{{key}}\" byl úspěšně přidán",

Diff for: client/src/__locales/da.json

+3
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,15 @@
236236
"updated_upstream_dns_toast": "Upstream-servere er gemt",
237237
"dns_test_ok_toast": "Angivne DNS-servere fungerer korrekt",
238238
"dns_test_not_ok_toast": "Server \"{{key}}\": Kunne ikke bruges. Tjek, at du har angivet den korrekt",
239+
"dns_test_parsing_error_toast": "Sektion {{section}}: linje {{line}}: kunne ikke anvendes. Tjek at den er angivet korrekt",
239240
"dns_test_warning_toast": "Upstream \"{{key}}\" svarer ikke på testforespørgsler og fungerer muligvis ikke korrekt",
240241
"unblock": "Afblokering",
241242
"block": "Blokering",
242243
"disallow_this_client": "Afvis denne klient",
243244
"allow_this_client": "Tillad denne klient",
244245
"block_for_this_client_only": "Blokér kun for denne klient",
245246
"unblock_for_this_client_only": "Afblokér kun for denne klient",
247+
"add_persistent_client": "Tilføj som vedvarende klient",
246248
"time_table_header": "Tid",
247249
"date": "Dato",
248250
"domain_name_table_header": "Domænenavn",
@@ -465,6 +467,7 @@
465467
"form_add_id": "Tilføj identifikator",
466468
"form_client_name": "Angiv klientnavn",
467469
"name": "Navn",
470+
"client_name": "Klient {{id}}",
468471
"client_global_settings": "Brug globale indstillinger",
469472
"client_deleted": "Klient \"{{key}}\" slettet",
470473
"client_added": "Klient \"{{key}}\" tilføjet",

Diff for: client/src/__locales/de.json

+3
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,15 @@
236236
"updated_upstream_dns_toast": "Upstream-Server erfolgreich gespeichert",
237237
"dns_test_ok_toast": "Angegebene DNS-Server arbeiten ordnungsgemäß",
238238
"dns_test_not_ok_toast": "Server „{{key}}“: konnte nicht verwendet werden, bitte überprüfen Sie die korrekte Schreibweise",
239+
"dns_test_parsing_error_toast": "Abschnitt {{section}}: Zeile {{line}}: konnte nicht verwendet werden, bitte überprüfen Sie, ob alles richtig geschrieben ist",
239240
"dns_test_warning_toast": "Upstream „{{key}}“ reagiert nicht auf Testanfragen und funktioniert möglicherweise nicht fehlerfrei",
240241
"unblock": "Entsperren",
241242
"block": "Sperren",
242243
"disallow_this_client": "Diesen Client sperren",
243244
"allow_this_client": "Diesen Client zulassen",
244245
"block_for_this_client_only": "Nur für diesen Client sperren",
245246
"unblock_for_this_client_only": "Nur für diesen Client freigeben",
247+
"add_persistent_client": "Als dauerhaften Client hinzufügen",
246248
"time_table_header": "Zeit",
247249
"date": "Datum",
248250
"domain_name_table_header": "Domainname",
@@ -465,6 +467,7 @@
465467
"form_add_id": "Kennung hinzufügen",
466468
"form_client_name": "Clientnamen eingeben",
467469
"name": "Name",
470+
"client_name": "Client {{id}}",
468471
"client_global_settings": "Allgemeine Einstellungen nutzen",
469472
"client_deleted": "Client „{{key}}“ erfolgreich entfernt",
470473
"client_added": "Client „{{key}}“ erfolgreich hinzugefügt",

0 commit comments

Comments
 (0)