From 935ee65c13db90e8e6479d189947b48302fb5db1 Mon Sep 17 00:00:00 2001 From: Olivier Cervello Date: Tue, 3 Dec 2024 12:54:18 +0100 Subject: [PATCH] fix(naabu): convert localhost to 127.0.0.1 and back (#502) --- secator/tasks/naabu.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/secator/tasks/naabu.py b/secator/tasks/naabu.py index c9c69c83..a296b981 100644 --- a/secator/tasks/naabu.py +++ b/secator/tasks/naabu.py @@ -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