Always call addPeer command with strip ip address and int port
This commit is contained in:
parent
5f33516054
commit
1eacc26ef9
2 changed files with 2 additions and 2 deletions
|
@ -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"]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue