Rather than having GetNodeAddresses() return a special magic value indicating that it matches all IPs, add a separate method to check that. (And have GetNodeAddresses() just return the IPs as expected instead.)