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

Hyphen in hostname fix #318

Merged
merged 1 commit into from Feb 14, 2019
Merged

Conversation

crahan
Copy link
Contributor

@crahan crahan commented Feb 13, 2019

(Apologies for closing and opening a related pull request. I had not put this change in its own branch)

Thank you for creating sshuttle, it's an awesome tool that's been invaluable on numerous occasions!

Earlier today I ran into an issue when I tried to use a hostname with a hyphen in one of its labels (e.g. my-server.foobar.com) due to the current regex rx = r'([\w\.]+)(?:/(\d+))?(?::(\d+)(?:-(\d+))?)?$' in options.py not accounting for hyphens.

The quickest (and simplest) fix which passes the Travis unit tests was to add a hyphen in the list of allowed characters and to update ([\w\.]+) to ([\w\.\-]+).

@brianmay brianmay merged commit 4372c6c into sshuttle:master Feb 14, 2019
@crahan crahan deleted the hypeninhostname_fix branch February 14, 2019 22:25
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.

None yet

2 participants