-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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?
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.