Skip to content

Commit

Permalink
update host validation
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mattia-m committed Nov 23, 2023
1 parent 1ddc679 commit eed0299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/domain_notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (c *Client) SendNotification(host string, notification model.Notification)
return nil, fmt.Errorf("failed to verify host")
}

if index := ifHostInHosts(host, hosts); hosts == nil || (index == -1 && !hosts[index].Verified) {
if index := ifHostInHosts(host, hosts); hosts == nil || index == -1 || !hosts[index].Verified {
log.Error(err)
return nil, fmt.Errorf("failed to verify host")
}
Expand Down

0 comments on commit eed0299

Please sign in to comment.