Always call addPeer command with strip ip address and int port

This commit is contained in:
shortcutme 2018-09-17 15:20:31 +02:00
parent 5f33516054
commit 1eacc26ef9
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ class ContentDbPlugin(object):
num = 0
num_hashfield = 0
for row in res:
peer = site.addPeer(row["address"], row["port"])
peer = site.addPeer(str(row["address"]), row["port"])
if not peer: # Already exist
continue
if row["hashfield"]: