mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-01-20 01:52:15 +01:00
Add timeout for ykksm queries.
This commit is contained in:
parent
6ea1355f9b
commit
a714a63774
@ -104,6 +104,7 @@ function decryptOTP($otp, $base_url) {
|
||||
$ch = curl_init($url);
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, "YK-VAL");
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
|
||||
$response = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user