-
Notifications
You must be signed in to change notification settings - Fork 16.2k
feat: Added support for all proxy modes #24937
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
Conversation
Thanks for the PR! Can you split the Also can you add some tests, it would be difficult to test |
35a855c
to
61b4e7a
Compare
Finished, please review my changes. |
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.
LGTM with minor nits
61b4e7a
to
bac5c26
Compare
8000
changes look good, but this will need review from api working group before being merged. |
ac7eb75
to
b46c3e6
Compare
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.
The new APIs looks good to me, but I'd like to know a couple of things:
- Can the mode be set using the already-existing
proxyRules
string? Does themode
parameter provide access to functionality that's not currently accessible? - Can you say a little more about the use-case that motivates this API?
Thanks for the well-formatted PR (and test cases)!
The @electron/wg-api approved this at the August 24, 2020 meeting |
If it's unspecified, it will be automatically determined based on other specified options and matches the current behaviour. The mode is set to pac_script if pacScript is specified, otherwise it's set to fixed_servers.
Let me quote a part of reply from pull request #24945
There's no way to switch the proxy back to system mode without this change to |
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.
Thanks for the clarifications, and sorry for dropping the ball on this review. The general shape of the API looks good to me, just a couple of minor comments before we can get this landed.
0dfeafb
to
789d4d7
Compare
@LuoJinghua looks like the build is failing, but otherwise lgtm :) |
This commit extended setProxy to support all proxy modes including direct, auto_detect, pac_script, fixed_servers and system.
789d4d7
to
30de56d
Compare
Fixed. |
30de56d
to
f2cacb3
Compare
Release Notes Persisted
|
* feat: Added support for all proxy modes This commit extended setProxy to support all proxy modes including direct, auto_detect, pac_script, fixed_servers and system. * feat: New api for reload proxy configurations
* feat: Added support for all proxy modes This commit extended setProxy to support all proxy modes including direct, auto_detect, pac_script, fixed_servers and system. * feat: New api for reload proxy configurations
* feat: Added support for all proxy modes This commit extended setProxy to support all proxy modes including direct, auto_detect, pac_script, fixed_servers and system. * feat: New api for reload proxy configurations
Description of Change
This pull request introduces following changes:
direct
,auto_detect
,fixed_servers
,pac_script
andsystem
.Checklist
npm test
passesRelease Notes
Notes: Added support for explicitly specifying
direct
,auto_detect
orsystem
modes insession.setProxy()
.