-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Could pub tool support system proxy setting? #24080
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
Comments
Current support is by using environment variables: |
I know and have used the environment variables HTTP_PROXY/HTTPS_PROXY,but system setting are more flexable, so I hope pub command tool can support it . |
This issue was moved to dart-lang/pub#1317 |
Pub doesn't explicitly deal with any network configuration at all. This is an issue for |
For more information see #5454 which have a long discussion on proxy configuration, here is a copy of one of the comments on supporting automatic proxy configuration: We cannot support automatic configuration script (.pac) directly in Dart. A .pac is a JavaScript script intended for running in a browser. When a .pac script is used the .pac function FindProxyForURL is called and the returned string is then interpreted by the browser, e.g.: function FindProxyForURL(url, host) The string returned by HttpClient.findProxy callback uses the same format as .pac scripts. There are several standalone .pac evaluators out there, one is https://code.google.com/p/pacparser/. If you use that with the following Python script you should get the string to be used in line 7. import pacparser |
I have set the proxy for my machine, but dart can't read it, could pub tool support system proxy setting?
''when run the pub tool (set proxy by manual),it will return the result as follow pictures:''

The text was updated successfully, but these errors were encountered: