Add support for preferring peers in the same subnet