Fix
This commit is contained in:
parent
3024ec568f
commit
847fbdbd0a
1 changed files with 6 additions and 6 deletions
|
@ -60,13 +60,13 @@ def main():
|
|||
|
||||
rabbitmq.publish(f"{data}")
|
||||
|
||||
else:
|
||||
else:
|
||||
|
||||
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)
|
||||
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)
|
||||
|
||||
except Exception:
|
||||
failureEvent.set()
|
||||
|
|
Loading…
Reference in a new issue