mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-02-16 09:59:49 +03:00
Pull request: 4927-ddr-template
Updates #4927. Squashed commit of the following: commit 8cf080d5355261ced7e8b10de607cbf37e1d663d Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Tue Sep 20 15:18:48 2022 +0300 dnsforward: fix doh template
This commit is contained in:
parent
cc2388e0c8
commit
4fc045de11
3 changed files with 7 additions and 2 deletions
|
@ -25,7 +25,12 @@ and this project adheres to
|
||||||
- Support for plain (unencrypted) HTTP/2 ([#4930]). This is useful for AdGuard
|
- Support for plain (unencrypted) HTTP/2 ([#4930]). This is useful for AdGuard
|
||||||
Home installations behind a reverse proxy.
|
Home installations behind a reverse proxy.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Incorrect path template in DDR responses ([#4927]).
|
||||||
|
|
||||||
[#2993]: https://github.com/AdguardTeam/AdGuardHome/issues/2993
|
[#2993]: https://github.com/AdguardTeam/AdGuardHome/issues/2993
|
||||||
|
[#4927]: https://github.com/AdguardTeam/AdGuardHome/issues/4927
|
||||||
[#4930]: https://github.com/AdguardTeam/AdGuardHome/issues/4930
|
[#4930]: https://github.com/AdguardTeam/AdGuardHome/issues/4930
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -296,7 +296,7 @@ func (s *Server) makeDDRResponse(req *dns.Msg) (resp *dns.Msg) {
|
||||||
values := []dns.SVCBKeyValue{
|
values := []dns.SVCBKeyValue{
|
||||||
&dns.SVCBAlpn{Alpn: []string{"h2"}},
|
&dns.SVCBAlpn{Alpn: []string{"h2"}},
|
||||||
&dns.SVCBPort{Port: uint16(addr.Port)},
|
&dns.SVCBPort{Port: uint16(addr.Port)},
|
||||||
&dns.SVCBDoHPath{Template: "/dns-query?dns"},
|
&dns.SVCBDoHPath{Template: "/dns-query{?dns}"},
|
||||||
}
|
}
|
||||||
|
|
||||||
ans := &dns.SVCB{
|
ans := &dns.SVCB{
|
||||||
|
|
|
@ -26,7 +26,7 @@ func TestServer_ProcessDDRQuery(t *testing.T) {
|
||||||
Value: []dns.SVCBKeyValue{
|
Value: []dns.SVCBKeyValue{
|
||||||
&dns.SVCBAlpn{Alpn: []string{"h2"}},
|
&dns.SVCBAlpn{Alpn: []string{"h2"}},
|
||||||
&dns.SVCBPort{Port: 8044},
|
&dns.SVCBPort{Port: 8044},
|
||||||
&dns.SVCBDoHPath{Template: "/dns-query?dns"},
|
&dns.SVCBDoHPath{Template: "/dns-query{?dns}"},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue