1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

Merge pull request #968 from jtsage/fix-ubiquity-plugin

Ubiquity Plugin: login error fix
This commit is contained in:
Lars Kruse 2019-02-01 14:45:12 +01:00 committed by GitHub
commit bc8bb4d9d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1113,7 +1113,7 @@ sub fetch_data {
$curl->setopt($curl->CURLOPT_SSL_VERIFYHOST, (( $APIconfig{"ssl_verify_host"} =~ m/no/i ) ? 0 : 2) ); $curl->setopt($curl->CURLOPT_SSL_VERIFYHOST, (( $APIconfig{"ssl_verify_host"} =~ m/no/i ) ? 0 : 2) );
$curl->setopt($curl->CURL_SSLVERSION_TLSv1, 1); $curl->setopt($curl->CURL_SSLVERSION_TLSv1, 1);
$curl->setopt($curl->CURLOPT_URL, $APIPoint{'login'}); $curl->setopt($curl->CURLOPT_URL, $APIPoint{'login'});
$curl->setopt($curl->CURLOPT_POSTFIELDS, q[{'username':'] . $APIconfig{"user"} . q[', 'password':'] . $APIconfig{"pass"} . q['}] ); $curl->setopt($curl->CURLOPT_POSTFIELDS, q[{"username":"] . $APIconfig{"user"} . q[", "password":"] . $APIconfig{"pass"} . q["}] );
$curl->setopt($curl->CURLOPT_WRITEDATA, \$APIResponse{'login'}); $curl->setopt($curl->CURLOPT_WRITEDATA, \$APIResponse{'login'});
$retcode = $curl->perform; $retcode = $curl->perform;