| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f2389eb commit 1933efa
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,7 +20,7 @@ | |||
| 20 | 20 | // USE OR OTHER DEALINGS IN THE SOFTWARE. | |
| 21 | 21 | ||
| 22 | 22 | 'use strict'; | |
| 23 | - const common = require('../common'); | ||
| 23 | + require('../common'); | ||
| 24 | 24 | const net = require('net'); | |
| 25 | 25 | const assert = require('assert'); | |
| 26 | 26 | ||
@@ -55,8 +55,8 @@ function makeCallback(c) { | |||
| 55 | 55 | }; | |
| 56 | 56 | } | |
| 57 | 57 | ||
| 58 | - server.listen(common.PORT, function() { | ||
| 59 | - const client = net.createConnection(common.PORT); | ||
| 58 | + server.listen(0, function() { | ||
| 59 | + const client = net.createConnection(server.address().port); | ||
| 60 | 60 | ||
| 61 | 61 | client.on('connect', function() { | |
| 62 | 62 | for (let i = 0; i < N; i++) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments