Delay on wake?

I use Viscosity on my MacBook Pro under Mavericks. I have it set up to automatically connect on wake. However, without fail, every time I wake my laptop Viscosity attempts to reconnect the VPN without waiting for the wifi connection to be established. Viscosity then errors out and displays a popup notification.

Would it be possible to change Viscosity to either wait until a valid wifi connection is established, or even simpler, insert a 5-10 sec delay, before attempting to open the VPN connection?

Hi dcmike,

You can force Viscosity to wait longer using the ConnectOnWakeDelay option. For example, run the following command from the Terminal (/Applications/Utilities/Terminal.app) to set the wait time to 10 seconds. You’ll need to restart Viscosity for it to take effect.

defaults write com.viscosityvpn.Viscosity ConnectOnWakeDelay -int 10

You can adjust the wait time to whatever suits best.

Cheers,
James

Perfect! Thank you.