handle peer matching for subscriptions by name instead of IP address (issue #5103)