renamed relay.getPeerDomain to getDomain