Correctly detect IPv4 link local addresses

Fixes #4341