(net)
| 6248 | arp: { verdict: arpV, reasons: (arp && arp.reasons) || [] }, |
| 6249 | dhcp: { verdict: 'checking…', reasons: [] }, |
| 6250 | }; |
| 6251 | renderNetIntegrity(state); |
| 6252 | // Slow DHCP check — update the chip (and overall) once it resolves. |
| 6253 | fetchAPI('/api/net/dhcp-guardian?quick=1').then(dhcp => { |
| 6254 | const dhcpV = dhcp ? dhcp.verdict : 'unknown'; |
| 6255 | state.dhcp = { verdict: dhcpV, reasons: (dhcp && dhcp.reasons) || [] }; |
| 6256 | state.overall = ['clean', 'suspicious', 'compromised'][Math.max( |
| 6257 | _NETINT_RANK[dnsV] || 0, _NETINT_RANK[arpV] || 0, _NETINT_RANK[dhcpV] || 0)]; |
| 6258 | renderNetIntegrity(state); |
| 6259 | }).catch(() => { |
| 6260 | state.dhcp = { verdict: 'unknown', reasons: [] }; |
no outgoing calls
no test coverage detected