Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Commit

Permalink
Fixed updating peers
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrevinnoc committed Mar 9, 2021
1 parent 88047e1 commit e54d170
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions future.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ def sendRegisterRequestToPeer(url):
print("peer:, ", peer)
print("#######################")
if peer == hostIP or peer == hostname:
listOfPeers.append(peer)
listOfPeers = list(set(listOfPeers))
print("Same as origin")
return "Same as origin"
else:
Expand Down

0 comments on commit e54d170

Please sign in to comment.