Method: NetworkTools::VpnTools#on_vpn
- Defined in:
- lib/it_tools/network_tools.rb
#on_vpn ⇒ Object
-
Returns :
-
true if you are on the vpn or false if you are not on the vpn
-
25 26 27 28 29 30 31 |
# File 'lib/it_tools/network_tools.rb', line 25 def on_vpn if is_port_open?("spicevan.com", 22) return false else return true end end |