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

Fix using control server with IPv6 host #3181

Merged
merged 2 commits into from Jun 23, 2023

Conversation

MSP-Greg
Copy link
Member

@MSP-Greg MSP-Greg commented Jun 20, 2023

Description

Creating a server listener with an IPv6 host is working, but using an IPv6 host for the control server is not.

Fix, and add tests for both tcp & ssl connections. This involves trimming the surrounding brackets from the URI format (eg [::1]) to the IP address format (eg ::1).

See 0976412

Tests fail on current master.

Your checklist for this pull request

  • I have reviewed the guidelines for contributing to this repository.
  • I have added (or updated) appropriate tests if this PR fixes a bug or adds a feature.
  • My pull request is 100 lines added/removed or less so that it can be easily reviewed.
  • If this PR doesn't need tests (docs change), I added [ci skip] to the title of the PR.
  • If this closes any issues, I have added "Closes #issue" to the PR description or my commit messages.
  • I have updated the documentation accordingly.
  • All new and existing tests passed, including Rubocop.

@MSP-Greg MSP-Greg added the bug label Jun 20, 2023
@MSP-Greg
Copy link
Member Author

Small update:

  1. Removed duplicate code in test_pumactl.rb.
  2. host&.start_with? '[' is ~2x faster than host and host[0..0] == '['

@MSP-Greg MSP-Greg merged commit b2610b3 into puma:master Jun 23, 2023
64 checks passed
@MSP-Greg MSP-Greg deleted the 00-control-cli-ipv6 branch June 23, 2023 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants