(message, tone = 'muted')
| 10940 | async function triggerDeepScan(ip, options = {}) { |
| 10941 | try { |
| 10942 | // EXPLICIT DEBUG: Log what we received |
| 10943 | console.log('🔍 triggerDeepScan CALLED'); |
| 10944 | console.log(' Received IP parameter:', ip); |
| 10945 | console.log(' IP type:', typeof ip); |
| 10946 | console.log(' IP length:', ip ? ip.length : 'null/undefined'); |
| 10947 | |
| 10948 | if (!ip) { |
| 10949 | console.error('❌ IP parameter is empty in triggerDeepScan!'); |
| 10950 | addConsoleMessage('Error: No IP address provided for deep scan', 'error'); |
| 10951 | return; |
| 10952 | } |
| 10953 | |
| 10954 | const mode = (options.mode || 'full').toLowerCase(); |
| 10955 | const portstart = Number.isInteger(options.portstart) ? options.portstart : undefined; |
| 10956 | const portend = Number.isInteger(options.portend) ? options.portend : undefined; |
| 10957 | const modeDescription = mode === 'top3000' ? 'top 3000 ports' : 'all 65535 ports'; |
| 10958 | |
| 10959 | // Update button immediately to show scan is starting |
| 10960 | const buttonId = `deep-scan-btn-${ip.replace(/\./g, '-')}`; |
no outgoing calls
no test coverage detected