Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re6stnet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
re6stnet
Commits
e23c4782
Commit
e23c4782
authored
Sep 25, 2018
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! Fix read of own IP from cache
parent
eadce382
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
re6st/cache.py
re6st/cache.py
+1
-1
No files found.
re6st/cache.py
View file @
e23c4782
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment