1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2024-11-29 00:24:13 +01:00

rework re-sync to not use CURLOPT_PRIVATE

relates #41
This commit is contained in:
Klas Lindfors 2016-04-29 09:05:55 +02:00
parent b47206fff9
commit 9a5a24c45f

View File

@ -300,7 +300,6 @@ class SyncLib
}
$server_list[$server] = $list;
$handle = curl_init();
curl_setopt($handle, CURLOPT_PRIVATE, $server);
$ch[$server] = $handle;
$this->db->closeCursor($res);
}
@ -328,7 +327,7 @@ class SyncLib
while ($info = curl_multi_info_read($mh)) {
$handle = $info['handle'];
$server = curl_getinfo($handle, CURLINFO_PRIVATE);
$server = explode("?", curl_getinfo($handle, CURLINFO_EFFECTIVE_URL))[0];
$entry = $entries[$server];
$this->log(LOG_DEBUG, "handle indicated to be for $server.");
curl_multi_remove_handle($mh, $handle);