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

Do you support pac(proxy automatic configuration)? #21943

Closed
ghost opened this issue Sep 20, 2017 · 4 comments
Closed

Do you support pac(proxy automatic configuration)? #21943

ghost opened this issue Sep 20, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Sep 20, 2017

I want to pac(proxy automatic configuration) file for proxy environment in net/http package.
But I don't know how to configure by pac file.
I wish to use like "ProxyFromEnvironment" method in http package.

@ghost
Copy link
Author

ghost commented Sep 26, 2017

please comment...

@ianlancetaylor
Copy link
Contributor

Sorry for not noticing this earlier. We don't use the issue tracker to ask questions. Please use a forum; see https://golang.org/wiki/Questions .

I don't actually know the answer to your question.

@bradfitz
Copy link
Contributor

bradfitz commented Nov 2, 2017

But the answer is "no". Supporting PAC would mean having a full JavaScript implementation in the standard library.

You can use https://godoc.org/github.com/jackwakefield/gopac which itself uses https://godoc.org/github.com/robertkrimen/otto (a JavaScript implementation in Go).

@ogimenezb
Copy link

There is an implementation that uses syscall. https://github.com/mattn/go-ieproxy/

Can we maybe use this one instead?

@golang golang locked and limited conversation to collaborators Jan 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants