allow ip address in in_range check

it would be nice to have single ip address comparing in the in_range check.