Skip to content

Commit

Permalink
Update ipcut.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwini-mhatre authored Jul 19, 2023
1 parent 3843146 commit 36090de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/filter/ipcut.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def ipcut(value, amount):
else:
ipsub = ipv6address[0:amount]

ipsubfinal = [(ipsub[i : i + 16]) for i in range(0, len(ipsub), 16)]
ipsubfinal = [(ipsub[i:i + 16]) for i in range(0, len(ipsub), 16)]
for i in ipsubfinal:
x = hex(int(i, 2))
ipv6_oct.append(x.replace("0x", ""))
Expand Down

0 comments on commit 36090de

Please sign in to comment.