When looking for an address, take the best match, not the first one.
With client requests and IP addresses in the same subnet (might happen
easily with IPv6) the client request should be sent to the local node,
if possible, so exact matches are preferred.