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}")
|
rabbitmq.publish(f"{data}")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
||||||
hostname = socket.gethostname()
|
hostname = socket.gethostname()
|
||||||
ipAddress = socket.gethostbyname(hostname)
|
ipAddress = socket.gethostbyname(hostname)
|
||||||
data = data.split('|')
|
data = data.split('|')
|
||||||
manager = log.logsManager(config.sqlServer, config.sqlDatabase, config.sqlUsername, config.sqlPassword)
|
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(hostname, ipAddress, data[1], data[5], data[6], data[2], config.ipinfoAPIToken)
|
||||||
|
|
||||||
except Exception:
|
except Exception:
|
||||||
failureEvent.set()
|
failureEvent.set()
|
||||||
|
|
Loading…
Reference in a new issue