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