probe
probe copied to clipboard
engine: improve the unfriendly behavior of IsBogon
The IsBogon()
function currently checks, whether the given IP address is bogon, but it should really return the (bool, error)
rather than bool
. We can check this unfriendly behavior by passing any non-bogon address to the function. Also, this would help to debug, if any error occurs.