Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement