Skip to content

Commit

Permalink
Merge pull request #7 from blacklanternsecurity/whitelist-blacklist
Browse files Browse the repository at this point in the history
break out _add
  • Loading branch information
TheTechromancer authored Oct 17, 2024
2 parents addba14 + 68993e2 commit 00f31dc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions radixtarget/radixtarget.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,11 @@ def add(self, t, data=None):
if not isinstance(t, (list, tuple, set)):
t = [t]
for single_target in sorted(t, key=host_size_key):
host = make_ip(single_target)
self.add_host(host, data=data)
self._add(single_target, data=data)

def _add(self, single_target, data=None):
host = make_ip(single_target)
self.add_host(host, data=data)

def add_host(self, host, data=None):
host = make_ip(host)
Expand Down

0 comments on commit 00f31dc

Please sign in to comment.