这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Conversation

@akim-bow
Copy link
Contributor

No description provided.

@linear
Copy link

linear bot commented Jan 18, 2024

Comment on lines 85 to 94
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];
Copy link
Contributor

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")
Copy link
Contributor

@shamsartem shamsartem Jan 19, 2024

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

Copy link
Contributor

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

Copy link
Contributor

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?

Copy link
Contributor

@shamsartem shamsartem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice job thanks

@fluencebot fluencebot mentioned this pull request Jan 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

e2e Run e2e workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants