Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: try with a different port #211

Merged
merged 1 commit into from
Feb 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ f.spawn(function (err, ipfsd) {

const IPFSFactory = require('ipfsd-ctl')

const port = 9999
const port = 9090
const server = IPFSFactory.createServer(port)
const f = IPFSFactory.create({ remote: true, port: port })

Expand Down Expand Up @@ -101,7 +101,7 @@ Install one or both of the following modules:

- `options` - optional object with:
- `remote` bool - use remote endpoint to spawn the nodes.
- `port` number - remote endpoint point. Defaults to 9999.
- `port` number - remote endpoint point. Defaults to 43134.
- `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')`)
- `type` - the daemon type, see below the options
- `go` - spawn go-ipfs daemon
Expand Down
2 changes: 1 addition & 1 deletion src/endpoint/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const routes = require('./routes')

class Server {
constructor (options) {
options = options || { port: 9999 }
options = options || { port: 43134 }

this.server = null
this.port = options.port
Expand Down
2 changes: 1 addition & 1 deletion src/factory-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class FactoryClient {
constructor (options) {
options = options || {}
if (!options.host) { options.host = 'localhost' }
if (!options.port) { options.port = 9999 }
if (!options.port) { options.port = 43134 }
if (typeof options.host === 'number') {
options.port = options.host
options.host = 'localhost'
Expand Down