Added port not null check on island resource

This commit is contained in:
VakarisZ 2020-05-21 10:57:18 +03:00
parent ca1ee90385
commit f941c9c5fc
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ class RemotePortCheck(flask_restful.Resource):
# Used by monkey. can't secure.
def get(self, port):
if check_tcp_port(request.remote_addr, port):
if port and check_tcp_port(request.remote_addr, port):
return {"status": "port_visible"}
else:
return {"status": "port_invisible"}