fixed slight error in validation
This commit is contained in:
@@ -319,7 +319,11 @@ func (obj *CloudflareDNSRes) Cmp(r engine.Res) error {
|
||||
return fmt.Errorf("apitoken differs")
|
||||
}
|
||||
|
||||
if obj.Proxied != res.Proxied {
|
||||
if (obj.Proxied == nil) != (res.Proxied == nil) {
|
||||
return fmt.Errorf("proxied values differ")
|
||||
}
|
||||
|
||||
if obj.Proxied != nil && *obj.Proxied != *res.Proxied {
|
||||
return fmt.Errorf("proxied values differ")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user