Skip to content

Commit

Permalink
chore: apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain authored Dec 9, 2024
1 parent fff51d6 commit fd2236d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/libp2p/src/connection-manager/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ export class DefaultConnectionManager implements ConnectionManager, Startable {
this.onDisconnect = this.onDisconnect.bind(this)

// allow/deny lists
this.allow = init.allow != null ? this.parseIpNetList(init.allow) : []
this.deny = init.deny != null ? this.parseIpNetList(init.deny) : []
this.allow = (init.allow ?? []).map(str => multiaddrToIpNet(str))
this.deny = (init.deny ?? []).map(str => multiaddrToIpNet(str))

this.incomingPendingConnections = 0
this.maxIncomingPendingConnections = init.maxIncomingPendingConnections ?? defaultOptions.maxIncomingPendingConnections
Expand Down

0 comments on commit fd2236d

Please sign in to comment.