Socks5 anyone know why this doesnt work


#1

I have a system that creates a TCPSocksProxy that works with chrome using this
–proxy-server=“socks5://%localip1%:%localport1%” --incognito --user-data-dir="%ALLUSERSPROFILE%\LabTech Client\LTChrome"

I tried the same with electron and it failed so I also tried
function openUrl(sUrl){
const remote = require(‘electron’).remote;
const {BrowserWindow} = require(‘electron’).remote;
var w = new BrowserWindow({width:800,height:600});
w.webContents.session.setProxy({proxyRules:“socks5://127.0.0.1:9999”},function(){

  w.loadURL(sUrl) 
  w.webContents.openDevTools()
  return w
})

}


Curl works from the command line as well
curl --socks5 127.0.0.1:9999 -k https://172.20.2.30
Pause

Chromium 53.0.2785.143, and Electron 1.4.7.
About
process.versions.node 6.5.0
process.versions.chrome 53.0.2785.143
mem.total 8267732
mem.free 898856
mem.swapTotal 16533604
mem.swapFree 2279680