Skip to content

Commit 4fdb071

Browse files
committed
fix: pick a non used port
1 parent fbca3e0 commit 4fdb071

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ f.spawn(function (err, ipfsd) {
5959

6060
const IPFSFactory = require('ipfsd-ctl')
6161

62-
const port = 9999
62+
const port = 9090
6363
const server = IPFSFactory.createServer(port)
6464
const f = IPFSFactory.create({ remote: true, port: port })
6565

@@ -101,7 +101,7 @@ Install one or both of the following modules:
101101

102102
- `options` - optional object with:
103103
- `remote` bool - use remote endpoint to spawn the nodes.
104-
- `port` number - remote endpoint point. Defaults to 9999.
104+
- `port` number - remote endpoint point. Defaults to 43134.
105105
- `exec` - IPFS executable path. `ipfsd-ctl` will attempt to locate it by default. If you desire to spawn js-ipfs instances in the same process, pass the ref to the module instead (e.g `exec: require('ipfs')`)
106106
- `type` - the daemon type, see below the options
107107
- `go` - spawn go-ipfs daemon

src/endpoint/server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const routes = require('./routes')
55

66
class Server {
77
constructor (options) {
8-
options = options || { port: 9999 }
8+
options = options || { port: 43134 }
99

1010
this.server = null
1111
this.port = options.port

src/factory-client.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class FactoryClient {
1010
constructor (options) {
1111
options = options || {}
1212
if (!options.host) { options.host = 'localhost' }
13-
if (!options.port) { options.port = 9999 }
13+
if (!options.port) { options.port = 43134 }
1414
if (typeof options.host === 'number') {
1515
options.port = options.host
1616
options.host = 'localhost'

0 commit comments

Comments
 (0)