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

Issue when adding 2 or more proxies with same hostname but different credentials #143

Open
Jev1337 opened this issue Jul 22, 2024 · 3 comments
Labels
area: authentication Authentication issues duplicate This issue or pull request already exists

Comments

@Jev1337
Copy link

Jev1337 commented Jul 22, 2024

Hello,

I noticed that whenever there are two proxies with same hostname, whenever I choose to ANY of the proxies with the same hostname it always connects to the first proxy.

image

It would be great if this gets fixed!

@erosman
Copy link
Collaborator

erosman commented Jul 22, 2024

As request in #33, #76 and mentioned in the included Help...

Proxies

FoxyProxy identifies proxies by their "hostname:post" or PAC URL.

In case more than one proxy with the same "hostname:post" is needed, one or more letters can be added to the port to separate them, and FoxyProxy will remove the letters later. (v8.8)

127.0.0.1:9050
127.0.0.1:9050a
127.0.0.1:9050b
127.0.0.1:9050c

The augmented port method is only only available for SOCKS & HTTPS (not HTTP, due to the limitation of the Firefox API).
For Unix Domain Sockets, where port is ignored, only numbers should be used.

Another solution is to prepend hostnames where possible e.g. <sometext>.localhost since they all resolve to 127.0.0.1 internally.

@erosman erosman added the duplicate This issue or pull request already exists label Jul 22, 2024
@Jev1337
Copy link
Author

Jev1337 commented Jul 25, 2024

Is it not possible to import them in the import page with the complete format ?

Adding random letters will cause an error using the full format:
protocol://username:password@server:port?color=00ff00&title=some%20title&proxyDns=false&enabed=false&countryCode=DE&country=Germany&patternIncludesAll=false&patternExcludesIntranet=false

image

@erosman
Copy link
Collaborator

erosman commented Jul 25, 2024

Is it not possible to import them in the import page with the complete format ?

As explained in the included Help...

All applicable parameters can be passed as search parameters (case-insensitive) (v8.0+)

https://example.com/?port=999a&active=false&title=Work&username=abcd&password=1234&cc=US&city=Miami

You can override values as well e.g. port=999a

https://example.com:443?port=999a&active=false&title=Work&username=abcd&password=1234&cc=US&city=Miami

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: authentication Authentication issues duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants