mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Fix decoding issue in realip-download.py job
This commit is contained in:
parent
dcf2b9e185
commit
ac6a9f648c
1 changed files with 3 additions and 3 deletions
|
|
@ -20,11 +20,11 @@ from jobs import Job # type: ignore
|
|||
|
||||
def check_line(line):
|
||||
with suppress(ValueError):
|
||||
if "/" in line:
|
||||
ip_network(line)
|
||||
if b"/" in line:
|
||||
ip_network(line.decode())
|
||||
return True, line
|
||||
else:
|
||||
ip_address(line)
|
||||
ip_address(line.decode())
|
||||
return True, line
|
||||
return False, b""
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue