| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b651e37 commit 18e00a5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,7 +25,7 @@ function execAndClose() { | |||
| 25 | 25 | const parser = parsers.pop(); | |
| 26 | 26 | parser.initialize(HTTPParser.RESPONSE, {}); | |
| 27 | 27 | ||
| 28 | - const socket = net.connect(common.PORT); | ||
| 28 | + const socket = net.connect(common.PORT, common.localhostIPv4); | ||
| 29 | 29 | socket.on('error', (e) => { | |
| 30 | 30 | // If SmartOS and ECONNREFUSED, then retry. See | |
| 31 | 31 | // https://github.com/nodejs/node/issues/2663. | |
@@ -57,7 +57,7 @@ const server = net.createServer(function(c) { | |||
| 57 | 57 | c.end('HTTP/1.1 200 OK\r\n\r\n', function() { | |
| 58 | 58 | c.destroySoon(); | |
| 59 | 59 | }); | |
| 60 | - }).listen(common.PORT, execAndClose); | ||
| 60 | + }).listen(common.PORT, common.localhostIPv4, execAndClose); | ||
| 61 | 61 | ||
| 62 | 62 | process.on('exit', function() { | |
| 63 | 63 | assert.strictEqual(gotResponses, COUNT); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments