SHARE
TWEET

Untitled

a guest Apr 19th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. require 'net/protocol'
  2.  
  3. class Net::Protocol
  4.   module ForceSNI
  5.     def ssl_socket_connect(*)
  6.       @sock.hostname = @host if @sock.respond_to? :hostname=
  7.       super
  8.     end
  9.   end
  10.   prepend ForceSNI
  11. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top