mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-01-20 01:52:15 +01:00
Support multiple IP authorizations in ykval-revoke.php.
This commit is contained in:
parent
966d2b57fe
commit
7d8df324bc
2
Makefile
2
Makefile
@ -1,4 +1,4 @@
|
||||
VERSION = 2.8
|
||||
VERSION = 2.9
|
||||
PACKAGE = yubikey-val
|
||||
CODE = COPYING Makefile NEWS ykval-checksum-clients.php \
|
||||
ykval-common.php ykval-config.php ykval-db.php ykval-db.sql \
|
||||
|
4
NEWS
4
NEWS
@ -1,3 +1,7 @@
|
||||
* Version 2.9 released 2011-05-09
|
||||
|
||||
* Support multiple IP authorizations in ykval-revoke.php.
|
||||
|
||||
* Version 2.8 released 2011-01-06
|
||||
|
||||
* Support YubiKey OTPs filtered through a US Dvorak keyboard layout.
|
||||
|
@ -5,8 +5,8 @@ require_once 'ykval-db.php';
|
||||
|
||||
header("content-type: text/plain");
|
||||
|
||||
if ($baseParams['__YKR_IP__'] != $_SERVER["REMOTE_ADDR"]) {
|
||||
logdie("ERROR Authorization failed");
|
||||
if (!in_array ($_SERVER["REMOTE_ADDR"], $baseParams['__YKREV_IPS__'])) {
|
||||
logdie("ERROR Authorization failed (logged ". $_SERVER["REMOTE_ADDR"] .")");
|
||||
}
|
||||
|
||||
# Parse input
|
||||
|
Loading…
x
Reference in New Issue
Block a user