mirror of
https://github.com/myronblair/jarvis
synced 2026-06-30 17:50:23 -05:00
Add netscan push endpoint: PVE1 nmap scan every 3min populates network devices
This commit is contained in:
+4
-1
@@ -26,7 +26,7 @@ $endpoint = $parts[0] ?? '';
|
||||
$action = $parts[1] ?? '';
|
||||
|
||||
// Auth check (except login and ping)
|
||||
if ($endpoint !== 'auth' && $endpoint !== 'agent') {
|
||||
if ($endpoint !== 'auth' && $endpoint !== 'agent' && $endpoint !== 'netscan') {
|
||||
$token = $_SESSION['jarvis_token'] ?? ($_SERVER['HTTP_X_SESSION_TOKEN'] ?? '');
|
||||
if (empty($token) || $token !== ($_SESSION['jarvis_token'] ?? '')) {
|
||||
$localIP = $_SERVER['REMOTE_ADDR'] ?? '';
|
||||
@@ -57,6 +57,9 @@ switch ($endpoint) {
|
||||
case 'system':
|
||||
require __DIR__ . '/../api/endpoints/system.php';
|
||||
break;
|
||||
case 'netscan':
|
||||
require __DIR__ . '/../api/endpoints/netscan.php';
|
||||
break;
|
||||
case 'network':
|
||||
require __DIR__ . '/../api/endpoints/network.php';
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user