Skip to content

support dns resolve again #156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

morningli
Copy link

Some zk nodes have independent domain names. When the node changes, only the IP corresponding to the domain name is updated, and the domain name remains unchanged.

The current logic only resolves the domain name during initialization, and then uses the resolved IP to connect to ZK. The SDK cannot perceive the change of IP.

This pr can solve the above problem by trying to re-parse the domain name after all existing IPs cannot connect to ZK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant