diff --git a/AppImage/components/security.tsx b/AppImage/components/security.tsx index 318b4823..310f4115 100644 --- a/AppImage/components/security.tsx +++ b/AppImage/components/security.tsx @@ -193,6 +193,7 @@ export function Security() { loadApiTokens() loadSslStatus() loadFirewallStatus() + loadNetworkInterfaces() loadSecurityTools() }, []) @@ -220,16 +221,19 @@ export function Security() { const loadNetworkInterfaces = async () => { try { + console.log("[v0] Loading network interfaces...") const data = await fetchApi("/api/network") + console.log("[v0] Network API response:", JSON.stringify(data?.interfaces?.length), "interfaces found") if (data.interfaces) { - // Get physical + bridge + bond interfaces (exclude vm_lxc virtual taps) + console.log("[v0] Interface types:", data.interfaces.map((i: any) => `${i.name}(${i.type})`).join(", ")) const relevant = data.interfaces .filter((i: any) => ["physical", "bridge", "bond", "vlan"].includes(i.type)) .sort((a: any, b: any) => a.name.localeCompare(b.name)) + console.log("[v0] Filtered interfaces:", relevant.map((i: any) => i.name).join(", ")) setNetworkInterfaces(relevant) } - } catch { - // Silently fail - user can still type manually if needed + } catch (err) { + console.log("[v0] Error loading network interfaces:", err) } } @@ -2619,12 +2623,18 @@ ${(report.sections && report.sections.length > 0) ? `