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

Add support for multipart TLDs #283

Merged
merged 1 commit into from
Oct 10, 2021
Merged

Add support for multipart TLDs #283

merged 1 commit into from
Oct 10, 2021

Conversation

yoerayo
Copy link
Contributor

@yoerayo yoerayo commented Sep 29, 2021

The current implementation of puma-dev doesn't actually take the configured domains into account when resolving apps, so anything other than a very simple TLD fails to resolve properly. This PR attempts to remove the configured TLDs from the requested host before falling back to the old method of just stripping everything after and including the last period from the host.

@nonrational nonrational self-requested a review October 5, 2021 14:25
@nonrational
Copy link
Member

Thanks @yoerayo! Looks like this enhancement will obviate the symlink workarounds necessary to configure domains and not just TLDs. I'm going to merge as is and then add a note to the readme.

Will cut a new release in the next few days after kicking the tires a bit.

@nonrational nonrational merged commit 03601ea into puma:master Oct 10, 2021
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