mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
@@ -17,8 +17,12 @@ $start = microtime(true);
|
||||
$init_modules = array('web', 'graphs', 'auth');
|
||||
require realpath(__DIR__ . '/..') . '/includes/init.php';
|
||||
|
||||
if (!(Auth::check() || is_client_authorized($_SERVER['REMOTE_ADDR']))) {
|
||||
die('Unauthorized');
|
||||
if (!Auth::check()) {
|
||||
// check for unauthenticated graphs and set auth
|
||||
$auth = is_client_authorized($_SERVER['REMOTE_ADDR']);
|
||||
if (!$auth) {
|
||||
die('Unauthorized');
|
||||
}
|
||||
}
|
||||
|
||||
set_debug(isset($_GET['debug']));
|
||||
|
Reference in New Issue
Block a user