Skip to content
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

Use service address for discovery when possible #5

Merged
merged 1 commit into from
Oct 29, 2020

Conversation

geobeau
Copy link

@geobeau geobeau commented Oct 29, 2020

When using https it may be useful to use service address instead of the regular address to use specifics FQDNs

cmd/discovery.go Outdated
if svc.ServiceAddress != "" {
addr = svc.ServiceAddress
} else {
addr = svc.Address

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't we do something like
var addr string = svc.Address
if svc.ServiceAddress != "" {
addr = svc.ServiceAddress
}

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can do that

When using https it may be useful to use service address instead of the regular address to use specifics FQDNs
@geobeau geobeau merged commit d5bdee6 into criteo-forks:master Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants