Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
gdborton authored Jan 28, 2025
1 parent 17e9446 commit 907b108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export default () => {
compact2string.multi6(Buffer.from(message.added6)).forEach((peer, idx) => {
delete this._remoteDroppedPeers[peer]
if (!(peer in this._remoteAddedPeers)) {
const flags = message['added6.f'] ? message['added6.f'][idx] : undefined
const flags = message['added6.f']?.[idx]
this._remoteAddedPeers[peer] = { ip: 6, flags }
this.emit('peer', peer, this._decodeFlags(flags))
}
Expand Down

0 comments on commit 907b108

Please sign in to comment.