Skip to content
This repository has been archived by the owner on Aug 23, 2019. It is now read-only.

fix: dont blindly add observed addresses to our list #337

Merged
merged 1 commit into from
Apr 26, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/connection/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,7 @@ class ConnectionManager {
})
}

const { peerInfo, observedAddrs } = results

for (var i = 0; i < observedAddrs.length; i++) {
var addr = observedAddrs[i]
this.switch._peerInfo.multiaddrs.addSafe(addr)
}
const { peerInfo } = results

if (peerInfo) {
conn.setPeerInfo(peerInfo)
Expand Down