Skip to content

Commit 8fb7670

Browse files
committed
Pull request 1974: 6133-upd-quic-go
Updates AdguardTeam#6133. Squashed commit of the following: commit cb096e3 Author: Ainar Garipov <[email protected]> Date: Wed Aug 23 19:41:04 2023 +0300 openapi: imp chlog commit 623594f Author: Ainar Garipov <[email protected]> Date: Wed Aug 23 19:25:47 2023 +0300 all: upd quic-go, txt-lint
1 parent 2b90193 commit 8fb7670

File tree

8 files changed

+61
-27
lines changed

8 files changed

+61
-27
lines changed

AGHTechDoc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ Request:
835835
Response:
836836

837837
200 OK
838-
838+
839839
### API: Validate TLS configuration
840840

841841
Request:
@@ -2008,7 +2008,7 @@ Request:
20082008
Response:
20092009

20102010
200 OK
2011-
2011+
20122012
DOH plist file
20132013

20142014
## API: Get DNS over TLS .mobileconfig

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,10 @@ In this release, the schema version has changed from 24 to 25.
6969

7070
### Fixed
7171

72+
- Occasional DNS-over-QUIC and DNS-over-HTTP/3 errors ([#6133]).
7273
- Legacy DNS rewrites containing IPv4-mapped IPv6 addresses are now matching the
7374
`AAAA` requests, not `A` ([#6050]).
74-
- File log configuration, such as `max_size`, being ignored ([#6093]).
75+
- File log configuration, such as `max_size`, being ignored ([#6093]).
7576
- Panic on using a single-slash filtering rule.
7677
- Panic on shutting down while DNS requests are in process of filtering
7778
([#5948]).
@@ -84,6 +85,7 @@ In this release, the schema version has changed from 24 to 25.
8485
[#6053]: https://github.com/AdguardTeam/AdGuardHome/issues/6053
8586
[#6093]: https://github.com/AdguardTeam/AdGuardHome/issues/6093
8687
[#6122]: https://github.com/AdguardTeam/AdGuardHome/issues/6122
88+
[#6133]: https://github.com/AdguardTeam/AdGuardHome/issues/6133
8789

8890
<!--
8991
NOTE: Add new changes ABOVE THIS COMMENT.

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ require (
2727
// own code for that. Perhaps, use gopacket.
2828
github.com/mdlayher/raw v0.1.0
2929
github.com/miekg/dns v1.1.55
30-
github.com/quic-go/quic-go v0.37.4
30+
github.com/quic-go/quic-go v0.38.0
3131
github.com/stretchr/testify v1.8.4
3232
github.com/ti-mo/netfilter v0.5.0
3333
go.etcd.io/bbolt v1.3.7
@@ -48,15 +48,15 @@ require (
4848
github.com/davecgh/go-spew v1.1.1 // indirect
4949
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
5050
github.com/golang/mock v1.6.0 // indirect
51-
github.com/google/pprof v0.0.0-20230811205829-9131a7e9cc17 // indirect
51+
github.com/google/pprof v0.0.0-20230821062121-407c9e7a662f // indirect
5252
github.com/mdlayher/socket v0.4.1 // indirect
5353
github.com/onsi/ginkgo/v2 v2.11.0 // indirect
5454
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
5555
github.com/pierrec/lz4/v4 v4.1.18 // indirect
5656
github.com/pkg/errors v0.9.1 // indirect
5757
github.com/pmezard/go-difflib v1.0.0 // indirect
5858
github.com/quic-go/qpack v0.4.0 // indirect
59-
github.com/quic-go/qtls-go1-20 v0.3.2 // indirect
59+
github.com/quic-go/qtls-go1-20 v0.3.3 // indirect
6060
github.com/u-root/uio v0.0.0-20230305220412-3e8cd9d6bf63 // indirect
6161
golang.org/x/mod v0.12.0 // indirect
6262
golang.org/x/sync v0.3.0 // indirect

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
4343
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
4444
github.com/google/gopacket v1.1.19 h1:ves8RnFZPGiFnTS0uPQStjwru6uO6h+nlr9j6fL7kF8=
4545
github.com/google/gopacket v1.1.19/go.mod h1:iJ8V8n6KS+z2U1A8pUwu8bW5SyEMkXJB8Yo/Vo+TKTo=
46-
github.com/google/pprof v0.0.0-20230811205829-9131a7e9cc17 h1:0h35ESZ02+hN/MFZb7XZOXg+Rl9+Rk8fBIf5YLws9gA=
47-
github.com/google/pprof v0.0.0-20230811205829-9131a7e9cc17/go.mod h1:Jh3hGz2jkYak8qXPD19ryItVnUgpgeqzdkY/D0EaeuA=
46+
github.com/google/pprof v0.0.0-20230821062121-407c9e7a662f h1:pDhu5sgp8yJlEF/g6osliIIpF9K4F5jvkULXa4daRDQ=
47+
github.com/google/pprof v0.0.0-20230821062121-407c9e7a662f/go.mod h1:czg5+yv1E0ZGTi6S6vVK1mke0fV+FaUhNGcd6VRS9Ik=
4848
github.com/google/renameio/v2 v2.0.0 h1:UifI23ZTGY8Tt29JbYFiuyIU3eX+RNFtUwefq9qAhxg=
4949
github.com/google/renameio/v2 v2.0.0/go.mod h1:BtmJXm5YlszgC+TD4HOEEUFgkJP3nLxehU6hfe7jRt4=
5050
github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
@@ -94,10 +94,10 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
9494
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c h1:ncq/mPwQF4JjgDlrVEn3C11VoGHZN7m8qihwgMEtzYw=
9595
github.com/quic-go/qpack v0.4.0 h1:Cr9BXA1sQS2SmDUWjSofMPNKmvF6IiIfDRmgU0w1ZCo=
9696
github.com/quic-go/qpack v0.4.0/go.mod h1:UZVnYIfi5GRk+zI9UMaCPsmZ2xKJP7XBUvVyT1Knj9A=
97-
github.com/quic-go/qtls-go1-20 v0.3.2 h1:rRgN3WfnKbyik4dBV8A6girlJVxGand/d+jVKbQq5GI=
98-
github.com/quic-go/qtls-go1-20 v0.3.2/go.mod h1:X9Nh97ZL80Z+bX/gUXMbipO6OxdiDi58b/fMC9mAL+k=
99-
github.com/quic-go/quic-go v0.37.4 h1:ke8B73yMCWGq9MfrCCAw0Uzdm7GaViC3i39dsIdDlH4=
100-
github.com/quic-go/quic-go v0.37.4/go.mod h1:YsbH1r4mSHPJcLF4k4zruUkLBqctEMBDR6VPvcYjIsU=
97+
github.com/quic-go/qtls-go1-20 v0.3.3 h1:17/glZSLI9P9fDAeyCHBFSWSqJcwx1byhLwP5eUIDCM=
98+
github.com/quic-go/qtls-go1-20 v0.3.3/go.mod h1:X9Nh97ZL80Z+bX/gUXMbipO6OxdiDi58b/fMC9mAL+k=
99+
github.com/quic-go/quic-go v0.38.0 h1:T45lASr5q/TrVwt+jrVccmqHhPL2XuSyoCLVCpfOSLc=
100+
github.com/quic-go/quic-go v0.38.0/go.mod h1:MPCuRq7KBK2hNcfKj/1iD1BGuN3eAYMeNxp3T42LRUg=
101101
github.com/shirou/gopsutil/v3 v3.23.7 h1:C+fHO8hfIppoJ1WdsVm1RoI0RwXoNdfTK7yWXV0wVj4=
102102
github.com/shoenig/go-m1cpu v0.1.6 h1:nxdKQNcEB6vzgA2E2bvzKIYRuNj7XNJ4S/aRSwKzFtM=
103103
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=

internal/dhcpd/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ To set up a test environment for DHCP server you will need:
1616

1717
### Configure Virtual Box
1818

19-
1. Install Virtual Box and run the following command to create a Host-Only
19+
1. Install Virtual Box and run the following command to create a Host-Only
2020
network:
2121

2222
```sh
2323
$ VBoxManage hostonlyif create
2424
```
25-
26-
You can check its status by `ip a` command.
2725

28-
You can also set up Host-Only network using Virtual Box menu:
29-
26+
You can check its status by `ip a` command.
27+
28+
You can also set up Host-Only network using Virtual Box menu:
29+
3030
```
3131
File -> Host Network Manager...
3232
```

openapi/CHANGELOG.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,14 @@
2929

3030
```json
3131
{
32-
"target": {"domain":"example.com","answer":"answer-to-update"},
33-
"update": {"domain":"example.com","answer":"new-answer"}
32+
"target": {
33+
"domain": "example.com",
34+
"answer": "answer-to-update"
35+
},
36+
"update": {
37+
"domain": "example.com",
38+
"answer": "new-answer"
39+
}
3440
}
3541
```
3642

@@ -88,7 +94,9 @@ return a JSON object with the following format:
8894
{
8995
"enabled": true,
9096
"interval": 3600,
91-
"ignored": ["example.com"],
97+
"ignored": [
98+
"example.com"
99+
]
92100
}
93101
```
94102

@@ -119,7 +127,9 @@ accept and return a JSON object with the following format:
119127
"enabled": true,
120128
"anonymize_client_ip": false,
121129
"interval": 3600,
122-
"ignored": ["example.com"],
130+
"ignored": [
131+
"example.com"
132+
]
123133
}
124134
```
125135

@@ -251,7 +261,7 @@ JSON object with the following format:
251261

252262
```json
253263
{
254-
"name":"user name",
264+
"name": "user name",
255265
"language": "en",
256266
"theme": "auto"
257267
}
@@ -327,8 +337,7 @@ the filters must be presented in a JSON object with the following format:
327337

328338
```json
329339
{
330-
"rules":
331-
[
340+
"rules": [
332341
"||example.com^",
333342
"# comment",
334343
"@@||www.example.com^"

scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ rerun_with_root() {
468468
readonly r u v
469469

470470
log 'restarting with root privileges'
471-
471+
472472
# Group curl/wget together with an echo, so that if the former fails before
473473
# producing any output, the latter prints an exit command for the following
474474
# shell to execute to prevent it from getting an empty input and exiting

scripts/make/txt-lint.sh

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This comment is used to simplify checking local copies of the script. Bump
44
# this number every time a remarkable change is made to this script.
55
#
6-
# AdGuard-Project-Version: 3
6+
# AdGuard-Project-Version: 4
77

88
verbose="${VERBOSE:-0}"
99
readonly verbose
@@ -49,8 +49,31 @@ trailing_newlines() {
4949
done
5050
}
5151

52+
# trailing_whitespace is a simple check that makes sure that there are no
53+
# trailing whitespace in plain-text files.
54+
trailing_whitespace() {
55+
# NOTE: Adjust for your project.
56+
git ls-files\
57+
':!*.bmp'\
58+
':!*.jpg'\
59+
':!*.mmdb'\
60+
':!*.png'\
61+
':!*.svg'\
62+
':!*.tar.gz'\
63+
':!*.webp'\
64+
':!*.zip'\
65+
| while read -r f
66+
do
67+
grep -e '[[:space:]]$' -n -- "$f"\
68+
| sed -e "s:^:${f}\::" -e 's/ \+$/>>>&<<</'
69+
done
70+
}
71+
5272
run_linter -e trailing_newlines
5373

54-
git ls-files -- '*.md' '*.txt' '*.yaml' '*.yml' 'client/src/__locales/en.json'\
74+
run_linter -e trailing_whitespace
75+
76+
git ls-files -- '*.conf' '*.md' '*.txt' '*.yaml' '*.yml'\
77+
'client/src/__locales/en.json'\
5578
| xargs misspell --error\
5679
| sed -e 's/^/misspell: /'

0 commit comments

Comments
 (0)