-
Notifications
You must be signed in to change notification settings - Fork 96
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
add http proxy settings #254
Conversation
README.md
Outdated
:pac-url "localhost:8888" ;; explore this for using proxy in safari | ||
:ftp "some.proxy.com:8080" | ||
:ssl "some.proxy.com:8080" | ||
:socks {:host "myproxy:8080" :version 5} |
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.
тут лучше порт 1080, это стандарт для сокс
README.md
Outdated
|
||
``` clojure | ||
{:proxy {:http "some.proxy.com:8080" | ||
:pac-url "localhost:8888" ;; explore this for using proxy in safari |
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.
pac-url лучше сдвинуть в конец мапы и добавить коммент:
A url for a proxy autoconfiguration file. Used with Safari as the other proxy options do not work in that browser.
И ссылку на вики:
https://en.wikipedia.org/wiki/Proxy_auto-config#The_PAC_File
src/etaoin/api.clj
Outdated
@@ -2884,6 +2896,12 @@ | |||
[with height] size | |||
log-level (or log-level :all) | |||
path-driver (or path-driver (get-in defaults [type :path])) | |||
proxy (or proxy |
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.
подход верный, только лучше в отдельной функции типа proxy-env. Она принимает proxy и дополняет переменными среды через cond->
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.
Она принимает proxy
, не получится что она затрет параметры которые мануально передали?
#fixies #148