mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-01 01:52:18 +01:00
Log HTTPS status.
This commit is contained in:
parent
369a6e0fbc
commit
c9f58a83c7
2
NEWS
2
NEWS
@ -3,6 +3,8 @@
|
|||||||
* Timestamp request and response because syslog doesn't record year
|
* Timestamp request and response because syslog doesn't record year
|
||||||
nor sub-second resolution.
|
nor sub-second resolution.
|
||||||
|
|
||||||
|
* Log whether HTTPS is used or not.
|
||||||
|
|
||||||
* Version 2.6 released 2010-08-02
|
* Version 2.6 released 2010-08-02
|
||||||
|
|
||||||
* Don't use rowCount in ykval-revoke, there seems to be some problem
|
* Don't use rowCount in ykval-revoke, there seems to be some problem
|
||||||
|
@ -10,7 +10,8 @@ header("content-type: text/plain");
|
|||||||
$myLog = new Log('ykval-verify');
|
$myLog = new Log('ykval-verify');
|
||||||
$myLog->addField('ip', $_SERVER['REMOTE_ADDR']);
|
$myLog->addField('ip', $_SERVER['REMOTE_ADDR']);
|
||||||
$myLog->log(LOG_INFO, "Request: " . $_SERVER['QUERY_STRING'] .
|
$myLog->log(LOG_INFO, "Request: " . $_SERVER['QUERY_STRING'] .
|
||||||
" (at " . date("c") . " " . microtime() . ")");
|
" (at " . date("c") . " " . microtime() . ") " .
|
||||||
|
($_SERVER["HTTPS"] == "on" ? "HTTPS" : "HTTP"));
|
||||||
|
|
||||||
/* Detect protocol version */
|
/* Detect protocol version */
|
||||||
if (preg_match("/\/wsapi\/([0-9]+)\.([0-9]+)\//", $_SERVER['REQUEST_URI'], $out)) {
|
if (preg_match("/\/wsapi\/([0-9]+)\.([0-9]+)\//", $_SERVER['REQUEST_URI'], $out)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user