Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Add sudo for redir #259

Merged
merged 2 commits into from
May 4, 2014
Merged

Add sudo for redir #259

merged 2 commits into from
May 4, 2014

Conversation

guerremdq
Copy link
Contributor

I add sudo for the redir_cmd, this is necessary when you try to use the 80 port on the box.

@fgrehm fgrehm added this to the v1.0.0 milestone Mar 20, 2014
@fgrehm
Copy link
Owner

fgrehm commented Mar 21, 2014

@guerremdq thanks! I'd love to bring this in but would you be able to fix the specs? :-) I also think it would be a good idea to use sudo only for ports < 1024 and warn the user about that to be consistent with Vagrant's behavior
If you need help with that please LMK!

@guerremdq
Copy link
Contributor Author

I'm working on this fixes. I will let you know when i finish.

@guerremdq
Copy link
Contributor Author

I add the check to use sudo only if the port is < 1024. But i think that is more complicate to check if the port is < 1024 when you make the kill of redir.

@fgrehm
Copy link
Owner

fgrehm commented Mar 28, 2014

Oh, you can get the port from the pidfile name :-)

@fgrehm fgrehm merged commit b288c05 into fgrehm:master May 4, 2014
fgrehm added a commit that referenced this pull request May 4, 2014
fgrehm added a commit that referenced this pull request May 4, 2014
@guerremdq
Copy link
Contributor Author

Thanks, If you want i can fix it and add the tests.

@fgrehm
Copy link
Owner

fgrehm commented May 4, 2014

Don't worry, I've fixed it and pushed already 😃

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants