@fanboynz/network-scanner 2.0.22 → 2.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/nettools.js CHANGED
@@ -357,13 +357,13 @@ async function whoisLookup(domain, timeout = 10000, whoisServer = null, debugMod
357
357
  * @param {number} whoisDelay - Delay in milliseconds before whois requests (default: 2000)
358
358
  * @returns {Promise<Object>} Object with success status and output/error
359
359
  */
360
- async function whoisLookupWithRetry(domain, timeout = 10000, whoisServer = null, debugMode = false, retryOptions = {}, whoisDelay = 2000, logFunc = null) {
360
+ async function whoisLookupWithRetry(domain, timeout = 10000, whoisServer = null, debugMode = false, retryOptions = {}, whoisDelay = 4000, logFunc = null) {
361
361
  const {
362
- maxRetries = 2,
362
+ maxRetries = 3,
363
363
  timeoutMultiplier = 1.5,
364
364
  useFallbackServers = true,
365
365
  retryOnTimeout = true,
366
- retryOnError = false
366
+ retryOnError = true
367
367
  } = retryOptions;
368
368
 
369
369
  let serversToTry = [];
@@ -709,7 +709,7 @@ function createNetToolsHandler(config) {
709
709
  const {
710
710
  whoisTerms,
711
711
  whoisOrTerms,
712
- whoisDelay = 2000,
712
+ whoisDelay = 4000,
713
713
  whoisServer,
714
714
  whoisServerMode = 'random',
715
715
  debugLogFile = null,
@@ -941,7 +941,7 @@ function createNetToolsHandler(config) {
941
941
 
942
942
  // Configure retry options based on site config or use defaults
943
943
  const retryOptions = {
944
- maxRetries: siteConfig.whois_max_retries || 2,
944
+ maxRetries: siteConfig.whois_max_retries || 3,
945
945
  timeoutMultiplier: siteConfig.whois_timeout_multiplier || 1.5,
946
946
  useFallbackServers: siteConfig.whois_use_fallback !== false, // Default true
947
947
  retryOnTimeout: siteConfig.whois_retry_on_timeout !== false, // Default true
package/nwss.1 CHANGED
@@ -383,7 +383,7 @@ Boolean. Retry on timeout errors (default: true).
383
383
 
384
384
  .TP
385
385
  .B whois_retry_on_error
386
- Boolean. Retry on connection/other errors (default: false).
386
+ Boolean. Retry on connection/other errors (default: true).
387
387
 
388
388
  .TP
389
389
  .B whois_delay
package/nwss.js CHANGED
@@ -1,4 +1,4 @@
1
- // === Network scanner script (nwss.js) v2.0.22 ===
1
+ // === Network scanner script (nwss.js) v2.0.23 ===
2
2
 
3
3
  // puppeteer for browser automation, fs for file system operations, psl for domain parsing.
4
4
  // const pLimit = require('p-limit'); // Will be dynamically imported
@@ -132,7 +132,7 @@ const { navigateWithRedirectHandling, handleRedirectTimeout } = require('./lib/r
132
132
  const { monitorBrowserHealth, isBrowserHealthy, isQuicklyResponsive, performGroupWindowCleanup, performRealtimeWindowCleanup, trackPageForRealtime, updatePageUsage, cleanupPageBeforeReload } = require('./lib/browserhealth');
133
133
 
134
134
  // --- Script Configuration & Constants ---
135
- const VERSION = '2.0.22'; // Script version
135
+ const VERSION = '2.0.23'; // Script version
136
136
 
137
137
  // get startTime
138
138
  const startTime = Date.now();
@@ -575,7 +575,7 @@ Advanced Options:
575
575
  whois_timeout_multiplier: 1.5 Timeout increase multiplier per retry (default: 1.5)
576
576
  whois_use_fallback: true Add TLD-specific fallback servers (default: true)
577
577
  whois_retry_on_timeout: true Retry on timeout errors (default: true)
578
- whois_retry_on_error: false Retry on connection/other errors (default: false)
578
+ whois_retry_on_error: true Retry on connection/other errors (default: true)
579
579
  whois_delay: <milliseconds> Delay between whois requests for this site (default: global whois_delay)
580
580
  dig: ["term1", "term2"] Check dig output for ALL specified terms (AND logic)
581
581
  dig-or: ["term1", "term2"] Check dig output for ANY specified term (OR logic)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fanboynz/network-scanner",
3
- "version": "2.0.22",
3
+ "version": "2.0.23",
4
4
  "description": "A Puppeteer-based network scanner for analyzing web traffic, generating adblock filter rules, and identifying third-party requests. Features include fingerprint spoofing, Cloudflare bypass, content analysis with curl/grep, and multiple output formats.",
5
5
  "main": "nwss.js",
6
6
  "scripts": {