This repository was archived by the owner on Aug 16, 2025. It is now read-only.
forked from fent/node-ytdl-core
-
-
Notifications
You must be signed in to change notification settings - Fork 99
SOCKS Proxy Support #276
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Does "@distube/ytdl-core" support SOCKS proxy? In some network environments, users may only be able to access the Internet through a SOCKS proxy. Adding support for SOCKS proxy will make the library more flexible to use.
The "ytdl.createProxyAgent" method can be enhanced to add support for SOCKS proxy. For example, allow users to pass SOCKS proxy configuration when creating a proxy, including the proxy server address and port.
Here is a working code example:
const ytdl = require("@distube/ytdl-core");
const agent = ytdl.createSocksProxyAgent({
uri: "socks5://my.socks.proxy.server:1080"
});
ytdl.getInfo("http://www.youtube.com/watch?v=aqz-KE-bpKQ", {proxy});Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working