sidorares / crconsole

Remote JavaScript console for Chrome/Webkit
MIT License
262 stars 23 forks source link

.tabs does not work with -a #27

Closed yukinying closed 8 years ago

yukinying commented 8 years ago

It looks like that when the cli is run with crconsole -a ...(ip address), it is falling back to use localhost.

node_modules/crconsole/index.js:667
      if (err) throw err;
               ^

Error: connect ECONNREFUSED 127.0.0.1:9222
    at Object.exports._errnoException (util.js:890:11)
    at exports._exceptionWithHostPort (util.js:913:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1059:14)

This patch should fix the issue.

sidorares commented 8 years ago

lgtm, thanks!