Add host network info display and custom subnet scan to Receivers tab #2

Closed
opened 2026-06-08 12:31:51 -07:00 by allen · 0 comments
Owner

Summary

The Receivers tab in the admin panel should display the host's network interfaces and allow scanning custom subnets for ADS-B receivers.

Changes

Server (server.py)

  • New GET /api/admin/network-info endpoint returning non-loopback IPv4 interfaces (name, IP, netmask, CIDR network)
  • POST /api/admin/scan-receivers now accepts optional {"subnet": "10.0.0.0/24"} body for custom subnet scans
  • Subnet validation via ipaddress.IPv4Network, capped at /20 (4096 hosts)
  • Refactored _scan_subnet() helper extracted from scan_for_receivers()

Admin UI

  • Network info table at top of Receivers tab showing all interfaces
  • Custom subnet input field next to SCAN NOW button
  • Error handling for invalid or oversized subnets

Files Changed

  • server.py
  • admin/admin.html
  • admin/admin.js
  • admin/admin.css

Commit

0b16218 — Add host network info display and custom subnet scan to Receivers tab

## Summary The Receivers tab in the admin panel should display the host's network interfaces and allow scanning custom subnets for ADS-B receivers. ## Changes ### Server (`server.py`) - New `GET /api/admin/network-info` endpoint returning non-loopback IPv4 interfaces (name, IP, netmask, CIDR network) - `POST /api/admin/scan-receivers` now accepts optional `{"subnet": "10.0.0.0/24"}` body for custom subnet scans - Subnet validation via `ipaddress.IPv4Network`, capped at /20 (4096 hosts) - Refactored `_scan_subnet()` helper extracted from `scan_for_receivers()` ### Admin UI - Network info table at top of Receivers tab showing all interfaces - Custom subnet input field next to SCAN NOW button - Error handling for invalid or oversized subnets ## Files Changed - `server.py` - `admin/admin.html` - `admin/admin.js` - `admin/admin.css` ## Commit `0b16218` — Add host network info display and custom subnet scan to Receivers tab
allen added the enhancementadmin-ui labels 2026-06-08 12:31:51 -07:00
allen closed this issue 2026-06-08 12:32:01 -07:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: allen/ADS-Bit#2