-
Notifications
You must be signed in to change notification settings - Fork 41
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
feat: support dns for p2p node #304
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
pkg/p2p/node_config.go
Outdated
if net.ParseIP(host) == nil { | ||
hosts, err := net.LookupHost(host) | ||
if err != nil { | ||
err = fmt.Errorf("failed to parser bootstrap '%s' domain", boot) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix parser to parse
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why use '%s' not %s?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
pkg/p2p/node_config.go
Outdated
return peersID, addrs, err | ||
} | ||
if len(hosts) == 0 { | ||
err = fmt.Errorf("failed to parser bootstrap '%s' domain, the empty ip list", boot) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
highlight
pkg/p2p/node_config.go
Outdated
break | ||
} | ||
if net.ParseIP(host) == nil { | ||
err = fmt.Errorf("failed to parser bootstrap '%s' domain, no usable ip", boot) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
highlight
* feat: support dns for p2p node * fix: ut error * fix: only support ipv4 * fix: cr comments
Description
Support DNS for p2p bootstrap node
Rationale
Use for k8s ALB and NLB
Example
N/A
Changes
Notable changes:
N/A