From 9bea0e8f201470487afa04f6c1cf0c814b45cdc1 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 12 Jun 2021 14:16:20 +0200 Subject: [PATCH] Nits --- dnscrypt-proxy/oblivious_doh.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dnscrypt-proxy/oblivious_doh.go b/dnscrypt-proxy/oblivious_doh.go index 815feb85..77bf3eea 100644 --- a/dnscrypt-proxy/oblivious_doh.go +++ b/dnscrypt-proxy/oblivious_doh.go @@ -5,6 +5,7 @@ import ( "encoding/binary" "fmt" + "github.com/jedisct1/dlog" hpkecompact "github.com/jedisct1/go-hpke-compact" ) @@ -79,6 +80,9 @@ func parseODoHTargetConfigs(configs []byte) ([]ODoHTargetConfig, error) { configVersion := binary.BigEndian.Uint16(configs[offset : offset+2]) configLength := binary.BigEndian.Uint16(configs[offset+2 : offset+4]) if configVersion == odohVersion || configVersion == odohTestVersion { + if configVersion != odohVersion { + dlog.Debugf("Server still uses the legacy 0x%x ODoH version", configVersion) + } target, err := parseODoHTargetConfig(configs[offset+4 : offset+4+int(configLength)]) if err == nil { targets = append(targets, target)