()
| 6909 | sel.appendChild(o); |
| 6910 | }); |
| 6911 | sel.dataset.filled = '1'; |
| 6912 | }).catch(() => {}); |
| 6913 | } |
| 6914 | async function runDhcpGuardian() { |
| 6915 | const out = document.getElementById('dhcp-results'); |
| 6916 | if (!out) return; |
| 6917 | const btn = (typeof event !== 'undefined' && event && event.target) ? event.target : null; |
| 6918 | const ifaceSel = document.getElementById('dhcp-iface'); |
| 6919 | const iface = ifaceSel && ifaceSel.value ? ifaceSel.value : ''; |
| 6920 | _ndBusy(btn, true, 'Scanning…'); |
| 6921 | out.classList.remove('hidden'); |
| 6922 | out.innerHTML = '<p class="text-sm text-gray-400">Provoking DHCP offers and watching for a DISCOVER flood… (a few seconds)</p>'; |
| 6923 | try { |
no test coverage detected