Skip to content

Commit

Permalink
fix(naabu): convert localhost to 127.0.0.1 and back (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocervell authored Dec 3, 2024
1 parent d0938ba commit 935ee65
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions secator/tasks/naabu.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,9 @@ def before_init(self):
for ix, input in enumerate(self.inputs):
if input == 'localhost':
self.inputs[ix] = '127.0.0.1'

@staticmethod
def on_item(self, item):
if item.host == '127.0.0.1':
item.host = 'localhost'
return item

0 comments on commit 935ee65

Please sign in to comment.