gruntjs / grunt-contrib-connect

Start a static web server.
http://gruntjs.com
MIT License
714 stars 146 forks source link

Log errors from portscanner #184

Closed Yogu closed 9 years ago

Yogu commented 9 years ago

e.g. EADDRNOTAVAIL might be thrown if the hostname is invalid.

We might even do a grunt.fatal, but I'm not sure.

I added a second fix in this patch because the first commit failed the build: If hostname is set to 0.0.0.0, grunt tries to do the port scan on this ip, which obviously fails. I added a rule to rewrite 0.0.0.0 to 127.0.0.1.

Yogu commented 9 years ago

I see, the build fails since three months. Not quite sure what's the problem there; this patch does at least fix the EADDRNOTAVAIL for our setup.