Defect Fix
This commit is contained in:
parent
cc0a27ff10
commit
65e9d3b2ec
1 changed files with 1 additions and 3 deletions
|
@ -66,11 +66,9 @@ def main():
|
|||
if dataBuffer:
|
||||
|
||||
data = dataBuffer.pop(0)
|
||||
hostname = socket.gethostname()
|
||||
ipAddress = socket.gethostbyname(hostname)
|
||||
data = data.split('|')
|
||||
manager = log.logsManager(config.sqlServer, config.sqlDatabase, config.sqlUsername, config.sqlPassword)
|
||||
manager.insertIPBlock(hostname, ipAddress, data[1], data[5], data[6], data[2], config.ipinfoAPIToken)
|
||||
manager.insertIPBlock(data[0], data[1], data[4], data[5], data[6], data[2], config.ipinfoAPIToken)
|
||||
|
||||
except Exception:
|
||||
failureEvent.set()
|
||||
|
|
Loading…
Reference in a new issue