expresso icon indicating copy to clipboard operation
expresso copied to clipboard

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

Open purpleglow opened this issue 3 years ago • 3 comments

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

purpleglow avatar Nov 27 '21 11:11 purpleglow

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?

sttz avatar Nov 28 '21 14:11 sttz

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

purpleglow avatar Nov 29 '21 09:11 purpleglow

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)

purpleglow avatar Nov 29 '21 10:11 purpleglow