Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'net/protocol'
- class Net::Protocol
- module ForceSNI
- def ssl_socket_connect(*)
- @sock.hostname = @host if @sock.respond_to? :hostname=
- super
- end
- end
- prepend ForceSNI
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement