mirror of
https://github.com/cwinfo/yggdrasil-map
synced 2025-06-26 11:39:23 +00:00
parallel sendGraph, don't accept data from old versions of sendGraph
This commit is contained in:
@ -17,6 +17,12 @@ def insert_graph_data(config, data, mail, ip, version):
|
||||
with open(config['LOG'], 'a') as f:
|
||||
f.write(log + '\n')
|
||||
|
||||
if mail == 'your@email.here':
|
||||
return 'Please change email address in config.'
|
||||
|
||||
if version != 2:
|
||||
return 'You are using outdated version of sendGraph script. Get new version from https://github.com/zielmicha/fc00.org/blob/master/scripts/sendGraph.py'
|
||||
|
||||
nodes = dict()
|
||||
edges = []
|
||||
|
||||
|
Reference in New Issue
Block a user