mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Merge branch '197-https-connection-between-server-and-console' into 'develop'
Allowed https connections with consoles with self-signed certificates See merge request artica/pandorafms!1553
This commit is contained in:
commit
517351ef69
@ -1164,6 +1164,15 @@ sub pandora_execute_action ($$$$$$$$$;$) {
|
||||
|
||||
# API connection
|
||||
my $ua = new LWP::UserAgent;
|
||||
eval {
|
||||
$ua->ssl_opts( 'verify_hostname' => 0 );
|
||||
$ua->ssl_opts( 'SSL_verify_mode' => 0x00 );
|
||||
};
|
||||
if ( $@ ) {
|
||||
logger($pa_config, "Failed to limit ssl security on console link: " . $@, 10);
|
||||
}
|
||||
|
||||
|
||||
my $url ||= $pa_config->{"console_api_url"};
|
||||
|
||||
my $params = {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user