-
Notifications
You must be signed in to change notification settings - Fork 26
fix: Update libp2p deps #419
Conversation
| const DOCKER_NOX_DENY_CONDITION: DenyCondition = (ma) => { | ||
| const [routingProtocol] = ma.stringTuples(); | ||
| const host = routingProtocol?.[1]; | ||
|
|
||
| return ( | ||
| host === undefined || host.startsWith("nox-") || host.startsWith("10.50.10") | ||
| ); | ||
| }; | ||
|
|
||
| const DENY_CONDITIONS = [DOCKER_NOX_DENY_CONDITION]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would just use camelCase for these variables, they are not really constants
| const host = routingProtocol?.[1]; | ||
|
|
||
| return ( | ||
| host === undefined || host.startsWith("nox-") || host.startsWith("10.50.10") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am understanding correctly that when this is true - then dialing this multiaddr is forbidden?
why specifically nox- and 10.50.10. Would be nice to leave the comment about that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there should be a more general way to handle that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if non-available addresses returned in real life, not in tests?
shamsartem
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice job thanks
No description provided.