From 0b16218ce966b367cc7ccaf23554c8f8eccf1196 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 8 Jun 2026 11:06:31 -0700 Subject: [PATCH] Add host network info display and custom subnet scan to Receivers tab Shows the server's network interfaces (IP, subnet) in the admin Receivers tab so users know which networks are being scanned. Adds an optional subnet input field to scan arbitrary networks (e.g. VLANs the server can route to but isn't directly attached to), with validation and a /20 size cap. Co-Authored-By: Claude Opus 4.6 --- admin/admin.css | 29 +++++++++++++++++ admin/admin.html | 8 +++++ admin/admin.js | 38 ++++++++++++++++++++-- server.py | 85 +++++++++++++++++++++++++++++++++++++++--------- 4 files changed, 143 insertions(+), 17 deletions(-) diff --git a/admin/admin.css b/admin/admin.css index 07817e7..92fb01d 100644 --- a/admin/admin.css +++ b/admin/admin.css @@ -325,6 +325,35 @@ textarea { margin-bottom: 10px; } +#network-info-box { + margin-top: 0; + margin-bottom: 16px; +} + +.network-info-table { + width: 100%; + border-collapse: collapse; + font-size: 12px; +} + +.network-info-table th, +.network-info-table td { + text-align: left; + padding: 6px 10px; + border-bottom: 1px solid rgba(92, 148, 252, 0.3); +} + +.network-info-table th { + font-family: 'Press Start 2P', monospace; + font-size: 8px; + color: #b4d4ec; +} + +.network-info-table td { + color: #54fc54; + font-family: 'Courier New', monospace; +} + /* Toast Notification */ .toast { position: fixed; diff --git a/admin/admin.html b/admin/admin.html index 7114f3b..aeb4d84 100644 --- a/admin/admin.html +++ b/admin/admin.html @@ -76,6 +76,10 @@