1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/net/http
Jeremy Evans 67612dadbc [ruby/net-http] Handle invalid use of IP addresses in SNI
Server Name Indication does not allow IP addresses (RFC 6066, section 3:
`Literal IPv4 and IPv6 addresses are not permitted in "HostName".`).

Recent versions of LibreSSL enforce this restriction, which raises
when setting the hostname to an IP address (s.hostname=), before
attempting to setup the SSL connection.

Since the certificate used in the test is already for localhost,
we cannot connect to localhost.  However, as all the test does is
check for a specific exception, just modify the regexp used so it
handles both cases.

https://github.com/ruby/net-http/commit/6ab399db45
2022-01-04 08:25:58 +09:00
..
test_buffered_io.rb
test_http.rb [ruby/net-http] Reset keep_alive timer on new connection 2021-11-04 20:44:04 +09:00
test_http_request.rb Sync test_http_request.rb after fix to net-http 2021-11-15 09:31:44 -08:00
test_httpheader.rb
test_httpresponse.rb Prepare for removing RubyVM::JIT (#5262) 2021-12-13 23:07:46 -08:00
test_httpresponses.rb
test_https.rb [ruby/net-http] Handle invalid use of IP addresses in SNI 2022-01-04 08:25:58 +09:00
test_https_proxy.rb
utils.rb