You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the same problem when I use proxy-agent. In this package socks5h works like socks5
importurlfrom'url';importhttpsfrom'https';import{ProxyAgent}from'proxy-agent';import{SocksProxyAgent}from'socks-proxy-agent';constproxy='socks5h://127.0.0.1:9050';constendpoint='https://duckduckgogg42xjoc72x3sjasowoarfbgcmvfimaftt6twagswzczad.onion';functionsendHttpRequest(endpoint,agent){constoptions=url.parse(endpoint);options.agent=agent;constoutgoing=https.get(options);returnnewPromise((resolve,reject)=>{outgoing.on('response',(res)=>resolve(res));outgoing.on('error',(err)=>reject(err));});}(async()=>{try{constres=awaitsendHttpRequest(endpoint,newSocksProxyAgent(proxy));console.log('onion via socks-proxy-agent',res.statusCode);}catch(err){console.error('onion via socks-proxy-agent',err);}try{constres=awaitsendHttpRequest(endpoint,newProxyAgent(proxy));console.log('onion via proxy-agent',res.statusCode);}catch(err){console.error('onion via proxy-agent',err);}})();
onion via socks-proxy-agent 200
onion via proxy-agent Error: getaddrinfo ENOTFOUND duckduckgogg42xjoc72x3sjasowoarfbgcmvfimaftt6twagswzczad.onion
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'duckduckgogg42xjoc72x3sjasowoarfbgcmvfimaftt6twagswzczad.onion'
}
The text was updated successfully, but these errors were encountered:
#324
I have the same problem when I use
proxy-agent
. In this packagesocks5h
works likesocks5
The text was updated successfully, but these errors were encountered: