Closed wanzixin closed 3 years ago
@WanZixin replace IP with domain, and remain port.
@ifplusor Do you mean to write like this?
SetPushConsumerNameServerDomain(consumer, "mydomain:9876");
@WanZixin
SetPushConsumerNameServerAddress(consumer, "mydomain:9876");
@ifplusor What scenarios are these two functions applied to please?
SetPushConsumerNameServerAddress(consumer, "mydomain:9876");
SetPushConsumerNameServerDomain(consumer, "mydomain:9876");
SetPushConsumerNameServerDomain
is deprecated, it will do HTTP Get to fetch namesrv list. Use SetPushConsumerNameServerAddress
only.
@ifplusor It's working. Thank you!
If so, how to use it? There is a risk of connecting the cluster through IP address, because the machine corresponding to IP address may be offline.