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): ...@@ -216,7 +216,7 @@ class Cache(object):
@my_address.deleter @my_address.deleter
def my_address(self): def my_address(self):
with self._db as db: 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 # Exclude our own address from results in case it is there, which may
# happen if a node change its certificate without clearing the cache. # happen if a node change its certificate without clearing the cache.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment