-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaner connection attempt with viscosity
- Loading branch information
Euan Reid
committed
Nov 27, 2016
1 parent
81844e3
commit f7b8954
Showing
2 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
INSTANCE_TYPE="g2.2xlarge" | ||
SPOT_PRICE_BUFFER="0.10" | ||
VPN_CLIENT="tunnelblick" | ||
VPN_CLIENT="viscosity" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
tell application "Viscosity" | ||
connect (connections where name is "ec2gaming") | ||
set currentState to state of connections where name is "ec2gaming" | ||
repeat until currentState = "Connected" | ||
delay 1 | ||
set currentState to "Unknown" | ||
repeat until (currentState = "Connected") | ||
if currentState = "Disconnected" then | ||
connect (connections where name is "ec2gaming") | ||
end if | ||
set currentState to state of connections where name is "ec2gaming" | ||
set currentState to currentState as string | ||
delay 1 | ||
end repeat | ||
end tell |