Commit e23c4782 authored by Julien Muchembled's avatar Julien Muchembled

fixup! Fix read of own IP from cache

parent eadce382
......@@ -216,7 +216,7 @@ class Cache(object):
def my_address(self):
with self._db as db:
db.execute("DELETE FROM peer WHERE NOT prefix")
db.execute("DELETE FROM peer WHERE prefix=''")
# Exclude our own address from results in case it is there, which may
# happen if a node change its certificate without clearing the cache.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment