Skip to content

Commit

Permalink
Merge 7ae44c8 into 0d41108
Browse files Browse the repository at this point in the history
  • Loading branch information
knu committed Apr 10, 2019
2 parents 0d41108 + 7ae44c8 commit e0aa1fb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions config/initializers/force_sni.rb
@@ -0,0 +1,11 @@
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

0 comments on commit e0aa1fb

Please sign in to comment.