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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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)GET /api/admin/network-infoendpoint returning non-loopback IPv4 interfaces (name, IP, netmask, CIDR network)POST /api/admin/scan-receiversnow accepts optional{"subnet": "10.0.0.0/24"}body for custom subnet scansipaddress.IPv4Network, capped at /20 (4096 hosts)_scan_subnet()helper extracted fromscan_for_receivers()Admin UI
Files Changed
server.pyadmin/admin.htmladmin/admin.jsadmin/admin.cssCommit
0b16218— Add host network info display and custom subnet scan to Receivers tab