Skip to content
Browse files

Changed bind address from 0.0.0.0 to 127.0.0.1 to prevent EADDRNOTAVA…

…IL on windows
  • Loading branch information...
1 parent abae4f9 commit 36ab7f9efd3b286c00f0c3e5166b25d2504e6b5b @pranavraja pranavraja committed Jul 11, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/test.js
View
3 lib/test.js
@@ -1,5 +1,4 @@
-
/**
* Module dependencies.
*/
@@ -40,7 +39,7 @@ function Test(app, method, path) {
var addr = app.address();
var portno = addr ? addr.port : port++;
if (!addr) app.listen(portno);
- this.url = 'http://0.0.0.0:' + portno + path;
+ this.url = 'http://127.0.0.1:' + portno + path;
}
/**

2 comments on commit 36ab7f9

@willhlaw

This tripped me up for a while today. When will this version get published to npm?

@tj
Sloth member
tj commented on 36ab7f9 Jul 15, 2012

done

Please sign in to comment.
Something went wrong with that request. Please try again.