How do I use data.proxy in a Node.js script?
BLOCK:ConstantString
value = $"<data.Proxy>"
=> VAR @P
ENDBLOCK
BLOCK:Script
INTERPRETER:NodeJS
INPUT P
BEGIN SCRIPT
var proxy = P;
END SCRIPT
OUTPUT String @proxy
ENDBLOCK
Thanks, I found a more detailed way. First, I parsed the proxy and its type, then I inputted it into Node.js using the proxy and type variables. Because I need to specify the proxy type in the script as well.
var type = data.Proxy.Type.ToString();
var proxy = data.Proxy.Host + “:” + data.Proxy.Port;
if (!string.IsNullOrEmpty(data.Proxy.Username))
{
proxy += “:” + data.Proxy.Username + “:” + data.Proxy.Password;
}
