| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0a85987 commit 7d6acef
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,15 +30,15 @@ function server() { | |||
| 30 | 30 | console.error('_socketEnd'); | |
| 31 | 31 | }); | |
| 32 | 32 | socket.write(content); | |
| 33 | - }).listen(common.PORT, function() { | ||
| 33 | + }).listen(common.PORT, common.localhostIPv4, function() { | ||
| 34 | 34 | console.log('listening'); | |
| 35 | 35 | }); | |
| 36 | 36 | } | |
| 37 | 37 | ||
| 38 | 38 | function client() { | |
| 39 | 39 | var net = require('net'); | |
| 40 | 40 | var client = net.connect({ | |
| 41 | - host: 'localhost', | ||
| 41 | + host: common.localhostIPv4, | ||
| 42 | 42 | port: common.PORT | |
| 43 | 43 | }, function() { | |
| 44 | 44 | client.destroy(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments