mirror of
https://github.com/smittix/intercept.git
synced 2026-07-05 16:18:12 -07:00
Fix WiFi quick scan via agent and improve error messages
Agent fixes: - Accept 'success' status for quick scans (not just 'started') - WiFi quick scans return 'success' with results, not 'started' Controller fixes: - Pass through actual error messages from agent responses - Previously showed generic "Agent returned error: 400" - Now shows actual message like "Root privileges required for deep scan"
This commit is contained in:
+2
-1
@@ -3596,7 +3596,8 @@ class InterceptAgentHandler(BaseHTTPRequestHandler):
|
||||
|
||||
if action == 'start':
|
||||
result = mode_manager.start_mode(mode, body)
|
||||
status = 200 if result.get('status') == 'started' else 400
|
||||
# Accept both 'started' and 'success' as valid (quick scans return 'success')
|
||||
status = 200 if result.get('status') in ('started', 'success') else 400
|
||||
self._send_json(result, status)
|
||||
elif action == 'stop':
|
||||
result = mode_manager.stop_mode(mode)
|
||||
|
||||
Reference in New Issue
Block a user