Skip to content

Commit 9bea0e8

Browse files
committed
Nits
1 parent da9c95e commit 9bea0e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dnscrypt-proxy/oblivious_doh.go

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"encoding/binary"
66
"fmt"
77

8+
"github.com/jedisct1/dlog"
89
hpkecompact "github.com/jedisct1/go-hpke-compact"
910
)
1011

@@ -79,6 +80,9 @@ func parseODoHTargetConfigs(configs []byte) ([]ODoHTargetConfig, error) {
7980
configVersion := binary.BigEndian.Uint16(configs[offset : offset+2])
8081
configLength := binary.BigEndian.Uint16(configs[offset+2 : offset+4])
8182
if configVersion == odohVersion || configVersion == odohTestVersion {
83+
if configVersion != odohVersion {
84+
dlog.Debugf("Server still uses the legacy 0x%x ODoH version", configVersion)
85+
}
8286
target, err := parseODoHTargetConfig(configs[offset+4 : offset+4+int(configLength)])
8387
if err == nil {
8488
targets = append(targets, target)

0 commit comments

Comments
 (0)