Checking either hostname or address, Fixes #1