probe icon indicating copy to clipboard operation
probe copied to clipboard

engine: improve the unfriendly behavior of IsBogon

Open skwowet opened this issue 2 years ago • 0 comments

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.

skwowet avatar Jun 25 '22 10:06 skwowet