Thanks for the module. Looks great overall.

This check actually needs to see if res is nil or not in case there's a timeout for whatever reason. If the timeout condition occurs, this will end up hitting a "undefined method `code' for nil:NilClass" bug. So I recommend simply writing it this way:

```ruby
(res and res.code == 200 and res.headers['set-Cookie'] =~ /webvpn/) ? true : false
```