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