We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b2ec71 commit b94fab4Copy full SHA for b94fab4
plugins/inline/hostname_extract.py renamed to plugins/events/hostname_extract.py
@@ -16,7 +16,7 @@ def run(self, message: EventMessage) -> None:
16
url = message.event.yeti_object
17
self.logger.info(f"Extracting hostname from: {url.value}")
18
o = urlparse(url.value)
19
- if observable.IPv4.is_valid(o.hostname):
+ if observable.IPv4.validator(o.hostname):
20
extracted_obs = observable.IPv4(value=o.hostname).save()
21
else:
22
extracted_obs = observable.Hostname(value=o.hostname).save()
0 commit comments