Skip to content

Commit

Permalink
Merge branch 'master' into ADG-7673
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Nov 3, 2023
2 parents 82368de + ffdebc7 commit c7fc33d
Show file tree
Hide file tree
Showing 9 changed files with 492 additions and 454 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ NOTE: Add new changes BELOW THIS COMMENT.
### Changed

- The height of ready-to-use filter lists has been increased ([#6358]).
- Improved authentication failure logging ([#6357]).

### Fixed

- Scrolling column headers in the tables ([#6337]).
- `$important,dnsrewrite` rules do not take precedence over allowlist rules
([#6204]).
- Dark mode DNS rewrite background ([#6329]).
Expand All @@ -43,6 +45,8 @@ NOTE: Add new changes BELOW THIS COMMENT.
[#6204]: https://github.com/AdguardTeam/AdGuardHome/issues/6204
[#6329]: https://github.com/AdguardTeam/AdGuardHome/issues/6329
[#6335]: https://github.com/AdguardTeam/AdGuardHome/issues/6335
[#6337]: https://github.com/AdguardTeam/AdGuardHome/issues/6337
[#6357]: https://github.com/AdguardTeam/AdGuardHome/issues/6357
[#6358]: https://github.com/AdguardTeam/AdGuardHome/issues/6358

<!--
Expand Down
4 changes: 0 additions & 4 deletions client/src/components/ui/ReactTable.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
overflow: visible;
}

.ReactTable .rt-tbody {
overflow: visible;
}

.ReactTable .rt-noData {
color: var(--rt-nodata-color);
background-color: var(--rt-nodata-bgcolor);
Expand Down
6 changes: 6 additions & 0 deletions internal/dnsforward/clientid.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (

"github.com/AdguardTeam/dnsproxy/proxy"
"github.com/AdguardTeam/golibs/errors"
"github.com/AdguardTeam/golibs/log"
"github.com/AdguardTeam/golibs/netutil"
"github.com/quic-go/quic-go"
)
Expand Down Expand Up @@ -151,6 +152,8 @@ func (s *Server) clientIDFromDNSContext(pctx *proxy.DNSContext) (clientID string
// DNS-over-HTTPS requests, it will return the hostname part of the Host header
// if there is one.
func clientServerName(pctx *proxy.DNSContext, proto proxy.Proto) (srvName string, err error) {
from := "tls conn"

switch proto {
case proxy.ProtoHTTPS:
r := pctx.HTTPRequest
Expand All @@ -164,6 +167,7 @@ func clientServerName(pctx *proxy.DNSContext, proto proxy.Proto) (srvName string
}

srvName = host
from = "host header"
}
case proxy.ProtoQUIC:
qConn := pctx.QUICConnection
Expand All @@ -183,5 +187,7 @@ func clientServerName(pctx *proxy.DNSContext, proto proxy.Proto) (srvName string
srvName = tc.ConnectionState().ServerName
}

log.Debug("dnsforward: got client server name %q from %s", srvName, from)

return srvName, nil
}

0 comments on commit c7fc33d

Please sign in to comment.