Skip to content
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: correctly validate protocols in anonymize_proxy #545

Merged
merged 6 commits into from
Aug 19, 2024

Conversation

jirimoravcik
Copy link
Member

This PR fixes validation of URL protocol for anonymize_proxy.ts

@jirimoravcik jirimoravcik added the adhoc Ad-hoc unplanned task added during the sprint. label Aug 16, 2024
@jirimoravcik jirimoravcik requested a review from drobnikj August 16, 2024 07:39
@github-actions github-actions bot added this to the 96th sprint - Platform team milestone Aug 16, 2024
@github-actions github-actions bot added the t-platform Issues with this label are in the ownership of the platform team. label Aug 16, 2024
@github-actions github-actions bot added the tested Temporary label used only programatically for some analytics. label Aug 16, 2024
Copy link
Member

@drobnikj drobnikj left a comment

Choose a reason for hiding this comment

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

Let's add test for socks protocol, otherwise fine 👍

@@ -114,19 +114,11 @@ describe('utils.anonymizeProxy', function () {
assert.throws(() => { closeAnonymizedProxy(null); }, Error);
});

it('throws for unsupported proxy protocols', () => {
assert.throws(() => { anonymizeProxy('socks://whatever.com'); }, Error);
Copy link
Member

Choose a reason for hiding this comment

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

Let's add test that some of socks protocol work.

src/anonymize_proxy.ts Show resolved Hide resolved
@jirimoravcik jirimoravcik requested a review from drobnikj August 19, 2024 08:00
@jirimoravcik jirimoravcik merged commit c46eafd into master Aug 19, 2024
4 checks passed
@jirimoravcik jirimoravcik deleted the fix/anonymize-proxy-protocols branch August 19, 2024 08:56
@fnesveda fnesveda added the validated Issues that are resolved and their solutions fulfill the acceptance criteria. label Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adhoc Ad-hoc unplanned task added during the sprint. t-platform Issues with this label are in the ownership of the platform team. tested Temporary label used only programatically for some analytics. validated Issues that are resolved and their solutions fulfill the acceptance criteria.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants