Skip to content
This repository was archived by the owner on Aug 16, 2025. It is now read-only.

SOCKS Proxy Support #276

@wtklrs

Description

@wtklrs

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});

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions