-
-
Save gr33n7007h/d041f4fbc08f0e065854bb180330c3ac to your computer and use it in GitHub Desktop.
for gp
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
NETWORK_PROXY_NEEDED = | |
begin | |
Socket.tcp(TEST_HOST, 80, connect_timeout: 1)&.close | |
false | |
rescue Errno::ETIMEDOUT | |
true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment