mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2024-12-10 22:25:49 +01:00
Verbose
This commit is contained in:
parent
6117a1111c
commit
4caa7b6d64
@ -64,7 +64,7 @@ func parseODoHTargetConfig(config []byte) (ODoHTargetConfig, error) {
|
||||
|
||||
func parseODoHTargetConfigs(configs []byte) ([]ODoHTargetConfig, error) {
|
||||
if len(configs) <= 2 {
|
||||
return nil, fmt.Errorf("No configs")
|
||||
return nil, fmt.Errorf("Server didn't return any ODoH configurations")
|
||||
}
|
||||
length := binary.BigEndian.Uint16(configs)
|
||||
if len(configs) != int(length)+2 {
|
||||
|
Loading…
Reference in New Issue
Block a user