您好,我正在尝试将 undici 与代理一起使用,但它不起作用,我累了
const client = new Client({
url: 'www.google.com',
proxy: 'http://user:pass@host:port'
})
还有这个
const { HttpsProxyAgent } = require("https-proxy-agent");
const proxy = new HttpsProxyAgent("http://user:pass@host:port");
time = new Date()
client.request({
path: '/',
method: 'GET',
httpsAgent: proxy
},
但似乎没有任何效果