Merge pull request #1 from solkogan/master

Fixed error "Bad file descriptor" when scanning.
This commit is contained in:
ChronosX88 2019-01-23 10:18:57 +04:00 committed by GitHub
commit 65b51bac7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,4 +13,5 @@ class CoreModel:
if result == 0: if result == 0:
openPorts.append(i) openPorts.append(i)
self.defSocket.close() self.defSocket.close()
self.defSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
return openPorts return openPorts