mirror of
https://github.com/webmin/webmin.git
synced 2026-09-20 04:20:39 +01:00
Use SNI for make_http_connection connections. Fixes #355
This commit is contained in:
@@ -7347,6 +7347,7 @@ if ($ssl) {
|
||||
return $error if ($error);
|
||||
}
|
||||
Net::SSLeay::set_fd($rv->{'ssl_con'}, fileno($rv->{'fh'}));
|
||||
Net::SSLeay::set_tlsext_host_name($rv->{'ssl_con'}, $host);
|
||||
Net::SSLeay::connect($rv->{'ssl_con'}) ||
|
||||
return "SSL connect() failed";
|
||||
if ($certreqs) {
|
||||
|
||||
Reference in New Issue
Block a user