Skip to content

Commit

Permalink
ech bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
phuslu committed Oct 19, 2024
1 parent 5a89778 commit f525d64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (c *Client) LookupHTTPS(ctx context.Context, host string) (https []NetHTTPS
if len(value) < 2 {
continue
}
h.ECH = append(h.ECH[:0], value[2:]...)
h.ECH = append(h.ECH[:0], value...)
case 6: // ipv6hint
if len(value) != length {
continue
Expand Down
2 changes: 1 addition & 1 deletion cmd/fastdig/fastdig.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ func cmd(req, resp *fastdns.Message, server string, start, end time.Time) {
if len(value) < 2 {
continue
}
h.ECH = append(h.ECH[:0], value[2:]...)
h.ECH = append(h.ECH[:0], value...)
case 6: // ipv6hint
if len(value) != length {
continue
Expand Down

0 comments on commit f525d64

Please sign in to comment.