IP address from ipv6 rotation is not actually used in outgoing network request.
undici does not have localAddress on request() but instead on Client. You need to create a new Client and set localAddress there and then send request through Client.request(). Something like this:
The above snippet does not work, it throws some errors, so treat as pseudo code. But maybe it helps to understand that you need to initialize a new Client where localAddress is specified before sending the request. I unfortunately don't have any experience with @distube/ytdl-core codebase or undici, so don't know how to implement the fix.
Currently, @distube/ytdl-core versions using undici is not actually using the generated IP address, and thus the "IP rotation" has no effect.
Describe the bug
IP address from ipv6 rotation is not actually used in outgoing network request.
undici
does not havelocalAddress
onrequest()
but instead onClient
. You need to create a newClient
and set localAddress there and then send request throughClient.request()
. Something like this:The above snippet does not work, it throws some errors, so treat as pseudo code. But maybe it helps to understand that you need to initialize a new
Client
wherelocalAddress
is specified before sending the request. I unfortunately don't have any experience with@distube/ytdl-core
codebase orundici
, so don't know how to implement the fix.Currently,
@distube/ytdl-core
versions usingundici
is not actually using the generated IP address, and thus the "IP rotation" has no effect.Environment