I'm able to set an HTTP proxy just fine for NightmareJS but how do I specify the type (http/socks5/socks4)? Here's the code I use to set an HTTP proxy:
const nightmare = Nightmare({
show:true,
switches: {
'proxy-server': proxyHost + ':' + proxyPort,
'ignore-certificate-errors': true
},
waitTimeout: 400000
});