bugfix
This commit is contained in:
parent
57c316974b
commit
3051db8a7a
@ -890,16 +890,16 @@ def lNodesCheckNodes(json_nodes, oArgs, bClean=False):
|
|||||||
|
|
||||||
if node["version"] and node["version"] < "1000002013":
|
if node["version"] and node["version"] < "1000002013":
|
||||||
lErrs += [nth]
|
lErrs += [nth]
|
||||||
LOG.error(f"vulnerable version {node['version']} < 1000002013")
|
LOG.error(f"{node['ipv4']}: vulnerable version {node['version']} < 1000002013")
|
||||||
elif node["version"] and node["version"] < sVER_MIN:
|
elif node["version"] and node["version"] < sVER_MIN:
|
||||||
LOG.warn(f"outdated version {node['version']} < {sVER_MIN}")
|
LOG.warn(f"{node['ipv4']}: outdated version {node['version']} < {sVER_MIN}")
|
||||||
|
|
||||||
# Put the onion address in the location after the country code
|
# Put the onion address in the location after the country code
|
||||||
if len(node["location"]) not in [2, 65]:
|
if len(node["location"]) not in [2, 65]:
|
||||||
LOG.warn(f"location {node['location']} should be a 2 digit country code, or 'code onion'")
|
LOG.warn(f"{node['ipv4']}: location {node['location']} should be a 2 digit country code, or 'code onion'")
|
||||||
elif len(node["location"]) == 65 and \
|
elif len(node["location"]) == 65 and \
|
||||||
not node["location"].endswith('.onion'):
|
not node["location"].endswith('.onion'):
|
||||||
LOG.warn(f"location {node['location']} should be a 2 digit country code 'code onion'")
|
LOG.warn(f"{node['ipv4']}: location {node['location']} should be a 2 digit country code 'code onion'")
|
||||||
elif len(node["location"]) == 65 and \
|
elif len(node["location"]) == 65 and \
|
||||||
node["location"].endswith('.onion') and bHAVE_TOR:
|
node["location"].endswith('.onion') and bHAVE_TOR:
|
||||||
onion = node["location"][3:]
|
onion = node["location"][3:]
|
||||||
@ -918,12 +918,12 @@ def lNodesCheckNodes(json_nodes, oArgs, bClean=False):
|
|||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
if s:
|
if s:
|
||||||
LOG.info(f"Found an onion that resolves to {s}")
|
LOG.info(f"{node['ipv4']}: Found an onion that resolves to {s}")
|
||||||
else:
|
else:
|
||||||
LOG.warn(f"Found an onion that resolves to {s}")
|
LOG.warn(f"{node['ipv4']}: Found an onion that resolves to {s}")
|
||||||
|
|
||||||
if node['last_ping'] and time.time() - node['last_ping'] > iOLD_SECS:
|
if node['last_ping'] and time.time() - node['last_ping'] > iOLD_SECS:
|
||||||
LOG.debug(f"node has not been pinged in more than 3 months")
|
LOG.debug(f"{node['ipv4']}: node has not pinged in more than 3 months")
|
||||||
|
|
||||||
# suggestions YMMV
|
# suggestions YMMV
|
||||||
|
|
||||||
|
@ -7,10 +7,10 @@ PREFIX=/mnt/o/var/local
|
|||||||
ROLE=text
|
ROLE=text
|
||||||
DEBUG=1
|
DEBUG=1
|
||||||
EXE=/var/local/bin/python3.bash
|
EXE=/var/local/bin/python3.bash
|
||||||
WRAPPER$PREFIX/src/toxygen_wrapper.git
|
WRAPPER=$PREFIX/src/toxygen_wrapper.git
|
||||||
tox=$HOME/.config/tox/toxic_profile.tox
|
tox=$HOME/.config/tox/toxic_profile.tox
|
||||||
[ -s $tox ] || exit 2
|
[ -s $tox ] || exit 2
|
||||||
target$PREFIX/src/tox_profile/tox_profile.py
|
target=$PREFIX/src/tox_profile/tox_profile.py
|
||||||
|
|
||||||
OUT=/tmp/toxic_profile
|
OUT=/tmp/toxic_profile
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user