Closed sam-s closed 2 years ago
I looked at url-proxy.el
and it's like 100 lines of elisp that for your purposes could be reduced down to:
if url contains .ec2.internal, then use ip-10-0-37-237.ec2.internal:8081
so I decided against doing anything about it.
I need to use a proxy only for some specific URLs, so I do:
However, when I do
ein:notebooklist-login
on"https://ip-10-0-37-237.ec2.internal:9443/user/jovyan/notebooks/"
, my functionsds-url-proxy-locator
is not called, presumably becauseein
callscurl
directly, and the connection fails withI don't think I can set
ACCESS_proxy
in such a way that it will point to the proxy only for some specific URLs.It would be nice if
ein
could take care of it just like FoxyProxy takes care of it for Chrome: callurl-find-proxy-for-url
and setACCESS_proxy
forcurl
appropriately.