简体   繁体   English

如何在 Deno 中正确设置 HTTP 或 HTTPS 代理

[英]How To Properly Setup HTTP or HTTPS PROXY in Deno

so i tried to fetch some resource ( filtered in my country ) with Deno所以我试图用Deno获取一些资源(在我的国家过滤)
i opened Environment Variables window in windows and under the User Variables Section add我在windows 中打开了Environment Variables窗口,并在User Variables Section 下添加
Variable Name: HTTP_PROXY变量名称: HTTP_PROXY
Variable Value: 195.45.78.1 : 25 [fake!]变量值: 195.45.78.1 : 25 [fake!]
but at the end i cant fetch resource it seems deno do not use that proxy, i tried at least 10 proxies i must mention that all of them was free proxies但最后我无法获取资源,似乎 deno 不使用该代理,我尝试了至少 10 个代理,我必须提到它们都是免费代理

maybe setup proxy wrong ... ?也许设置代理错误......?

You likely need to set HTTPS_PROXY in addition to (or instead of) HTTP_PROXY as most (perhaps all) of the resources you'll be downloading and fetching with Deno will use https .除了(或代替) HTTP_PROXY之外,您可能还需要设置HTTPS_PROXY ,因为您将使用 Deno 下载和获取的大多数(可能是全部)资源都将使用https

Reference: Proxies |参考: 代理 | Manual | 手册 | Deno 德诺

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM