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

Enable the ability to specify IPv4/6 expilcitly when listening on UDP #3344

Merged
merged 2 commits into from
Oct 16, 2017

Conversation

mindscratch
Copy link
Contributor

Fixes #3343

Required for all PRs:

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

@@ -856,6 +852,11 @@ func (s *Statsd) Stop() {
s.Unlock()
}

// IsUDP returns true if the protocol is UDP, false otherwise.
func (s *Statsd) isUDP() bool {
return s.Protocol[:3] == "udp"
Copy link
Contributor

Choose a reason for hiding this comment

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

Use strings.HasPrefix(, I think this will panic if the protocol is less than 3 chars.

@danielnelson danielnelson added this to the 1.5.0 milestone Oct 16, 2017
@danielnelson danielnelson merged commit 246ffab into influxdata:master Oct 16, 2017
@danielnelson
Copy link
Contributor

Thank you!

maxunt pushed a commit that referenced this pull request Jun 26, 2018
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.

2 participants