mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
Make LWP use IO::Socket::SSL instead of Net::SSL.
This commit is contained in:
parent
20ac3cca46
commit
4060b27b72
@ -2735,12 +2735,6 @@ sub get_user_agent {
|
|||||||
# Disable verify host certificate (only needed for self-signed cert)
|
# Disable verify host certificate (only needed for self-signed cert)
|
||||||
$ua->ssl_opts( 'verify_hostname' => 0 );
|
$ua->ssl_opts( 'verify_hostname' => 0 );
|
||||||
$ua->ssl_opts( 'SSL_verify_mode' => 0x00 );
|
$ua->ssl_opts( 'SSL_verify_mode' => 0x00 );
|
||||||
|
|
||||||
# Disable library extra checks
|
|
||||||
BEGIN {
|
|
||||||
$ENV{PERL_NET_HTTPS_SSL_SOCKET_CLASS} = "Net::SSL";
|
|
||||||
$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if($@) {
|
if($@) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user