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 proxy parsing #2557

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix proxy parsing #2557

wants to merge 1 commit into from

Conversation

leodag
Copy link
Contributor

@leodag leodag commented Aug 1, 2023

Fixes #2556

You'll probably want to apply #2554 too to test this, since otherwise you can't enter ':' (nor Ctrl+v on the field)

If a match for "port" is not found, it can be set as 1080 (the default SOCKS port).

This may have some implications for the following lines. If Mozilla VPN is set, does it matter whether port is set or not?

Nomes77 added a commit to Nomes77/multi-account-containers that referenced this pull request Aug 3, 2023
@dannycolin dannycolin self-requested a review October 17, 2023 22:03
@dannycolin dannycolin added the Component: Proxy Issues related to the proxy functionality label Oct 17, 2023
@@ -50,6 +50,10 @@ proxifiedContainers = {
return false;
}

if (!matches.groups.port) {
matches.groups.port = 1080;
Copy link
Collaborator

Choose a reason for hiding this comment

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

IIRC, HTTP(S) have a different default port. Since we're accepting both SOCKS and HTTPS, we should also consider this scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Proxy Issues related to the proxy functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proxy port gets saved as 'undefined' if not provided
2 participants