-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Adds listen-address
CLI flags for all services servers.
#7675
Changes from all commits
3bf8389
306f746
105011f
522eb32
b210fca
a01218d
82b3e8d
a22964f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -174,7 +174,7 @@ func (s *server) StartNonBlocking() error { | |
s.setupRoutes(publicR, s.api.PublicEndpoints()) | ||
|
||
healthServer := &http.Server{ | ||
Addr: fmt.Sprintf(":%d", *s.config.PublicPort), | ||
Addr: fmt.Sprintf("%s:%d", s.config.PublicListenAddress, *s.config.PublicPort), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The old code was omitting the listening address while the new code is sending "0.0.0.0" instead. Does it mean that we now will only listen to IPv4 addresses while before it would listen also on IPv6? Can this be validated? I am asking because maybe the default value should be empty string to keep backwards compatibility. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @artursouza, good catch! I've updated the default listen addresses CLI flags to be empty strings which will be the same value as before. PTAL. |
||
Handler: publicR, | ||
ReadHeaderTimeout: 10 * time.Second, | ||
MaxHeaderBytes: s.config.ReadBufferSize, | ||
|
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.
Same as above, do not repeat below.