From 7cd24319b3d0a8be35d713bcd447e0c98db393ee Mon Sep 17 00:00:00 2001 From: dmiller Date: Fri, 17 Jul 2026 21:56:32 +0000 Subject: [PATCH] Clarify some logic --- nselib/httpspider.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/nselib/httpspider.lua b/nselib/httpspider.lua index 000d4d56b..c99a83ac3 100644 --- a/nselib/httpspider.lua +++ b/nselib/httpspider.lua @@ -999,11 +999,7 @@ Crawler = { self.options.useheadfornonwebfiles = tobool(self.options.useheadfornonwebfiles) if ( self.options.withinhost == nil ) then - if ( self.options.withindomain ~= true ) then - self.options.withinhost = true - else - self.options.withinhost = false - end + self.options.withinhost = not self.options.withindomain end if ( self.options.withindomain == nil ) then self.options.withindomain = false