How can I configure deno to use a socks5 proxy? #17606
Unanswered
justinmchase
asked this question in
Q&A
Replies: 1 comment 4 replies
-
I think what youre looking for is const client = Deno.createHttpClient({
proxy: {
url: Deno.env.get('HTTPS_PROXY') ?? 'socks5://127.0.0.1:5000'
}
})
const req = await fetch('https://myserver.com', { client }) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am attempting to connect with a tls socket to a kafka server, but I need to go through a socks5 proxy to do it.
I'm trying to use
HTTPS_PROXY=localhost:50000 deno run -A index.ts
The localhost:50000 port is actually a
kubectl port-forward ...
command to a pod running a socks5 server. I know this works because I can use it to connect to other things, I'm just trying to write a deno script to automate some stuff and have it go through that port. So I'm just curious if how I can do socks5 proxying with Deno?Beta Was this translation helpful? Give feedback.
All reactions