Skip to content

Commit

Permalink
Merge pull request #944 from AnonymousWP/fix-port-error
Browse files Browse the repository at this point in the history
fix(port-scan): `int` object is not subscriptable
  • Loading branch information
yogeshojha authored Oct 2, 2023
2 parents 46cb013 + 05e6513 commit bc676ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/reNgine/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ def port_scanning(
lines = port_json_result.readlines()
for line in lines:
json_st = json.loads(line.strip())
port_number = json_st['port']['Port']
port_number = json_st['port']
ip_address = json_st['ip']
host = json_st['host']

Expand Down

0 comments on commit bc676ca

Please sign in to comment.