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

It would be great if there was a "vpn off" command to disconnect #13

Open
purpleglow opened this issue Nov 27, 2021 · 3 comments
Open

Comments

@purpleglow
Copy link

VPN on = connect to the last one used
VPN off = disconnect

@sttz
Copy link
Owner

sttz commented Nov 28, 2021

What would be the difference between the existing expresso disconnect command and vpn off?

expresso doesn't keep any state so I cannot save the most recent location. I'm not sure if the list of recent locations returned by ExpressVPN are sorted and if it therefore would be possible to get the most recent location. But you can just specify a location with expresso connect LOCATION (and use your shell's history), why would you specifically need to connect to the last used one?

@purpleglow
Copy link
Author

Sorry I should have been more specific. These are Alfred commands that work with expresso. expresso disconnect is not an Alfred command.

@purpleglow
Copy link
Author

why would you specifically need to connect to the last used one?

Because that's how Express VPN works. When you click the ON button, it connects to the last used one. When you click the OFF button, it disconnects. Therefore
VPN on = connect to last used
VPN off = disconnects

(Both are commands typed in Alfred)

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

No branches or pull requests

2 participants