chetan51 / sidestep

A Mac OS X application that automatically secures your Internet connection in unprotected wireless networks through SSH tunneling.
http://chetansurpur.com/projects/sidestep
MIT License
282 stars 32 forks source link

Add Advanced Preferences Tab With Goodies #53

Closed coneybeare closed 12 years ago

coneybeare commented 12 years ago

As discussed in #52, I have added an "Advanced" tab to the preference panel. Currently, the advanced tab has two features:

  1. Additional SSH Arguments
  2. SSH Command Preview

Additional SSH Arguments The Additional SSH Arguments field is simply a string that gets split by whitespace and appended to the NSTasks arguments. The field is hooks up the AppController as a delegate, so realtime edits are instantly reflected in the SSH Command Preview field, discussed further below. The string has checks for length, and the resulting component array has a check for count to protect it. Obviously, anything entered here has the ability to run on the system, so perhaps in the future, certain protective measures could be added such as removing anything after a semi-colon. I am not sure why anybody would want to hack their own system, but it would be a good idea to protect it anyway.

SSH Command Preview I pulled out the NSTask creation from the SSHConnector into a helper method. The SSH Command Preview box uses this method to generate an NSTask identical to what would be called on "Connect", then outputs it's launch path and args to create this string. All Textfield in preferences and also the compression checkbox are hooked up to regenerate this preview string when done editing, and the Additional SSH Arguments field live updates it because it lives on the same view. It is selectable for power users who may want to copy/paste the command themselves into terminal.

coneybeare commented 12 years ago

Forgot to attach the screenshot: screenshot

chetan51 commented 12 years ago

Released in the latest version (1.4.0). Thanks so much!

coneybeare commented 12 years ago

Can I get a little credit on this page? http://chetansurpur.com/projects/sidestep/

chetan51 commented 12 years ago

Of course! Sorry I forgot to update it earlier. It's up now: http://chetansurpur.com/projects/sidestep/

dgomes commented 12 years ago

Well, can everyone get credit ;) ?

= Diogo Gomes http://about.me/dgomes

On 21/11/2012, at 05:17, Chetan Surpur notifications@github.com wrote:

Of course! Sorry I forgot to update it earlier. It's up now: http://chetansurpur.com/projects/sidestep/

— Reply to this email directly or view it on GitHub.

chetan51 commented 12 years ago

There, just added everyone I could think of: http://chetansurpur.com/projects/sidestep/

dgomes commented 12 years ago

Thanks :)

= Diogo Gomes http://about.me/dgomes

On 22/11/2012, at 01:22, Chetan Surpur notifications@github.com wrote:

There, just added everyone I could think of: http://chetansurpur.com/projects/sidestep/

— Reply to this email directly or view it on GitHub.