Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
8ffd27a6
Commit
8ffd27a6
authored
Nov 09, 2014
by
Brian Tiger Chow
Committed by
Juan Batiz-Benet
Nov 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(init) inline bootstrap peers
parent
b3ea4995
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
cmd/ipfs2/init.go
cmd/ipfs2/init.go
+7
-10
No files found.
cmd/ipfs2/init.go
View file @
8ffd27a6
...
...
@@ -63,15 +63,6 @@ var initCmd = &cmds.Command{
},
}
// Use these hardcoded bootstrap peers for now.
var
defaultPeers
=
[]
*
config
.
BootstrapPeer
{
&
config
.
BootstrapPeer
{
// mars.i.ipfs.io
PeerID
:
"QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ"
,
Address
:
"/ip4/104.131.131.82/tcp/4001"
,
},
}
// TODO add default welcome hash: eaa68bedae247ed1e5bd0eb4385a3c0959b976e4
func
doInit
(
configRoot
string
,
dspath
string
,
force
bool
,
nBitsForKeypair
int
)
error
{
...
...
@@ -108,7 +99,13 @@ func doInit(configRoot string, dspath string, force bool, nBitsForKeypair int) e
API
:
"/ip4/127.0.0.1/tcp/5001"
,
},
Bootstrap
:
defaultPeers
,
Bootstrap
:
[]
*
config
.
BootstrapPeer
{
&
config
.
BootstrapPeer
{
// Use these hardcoded bootstrap peers for now.
// mars.i.ipfs.io
PeerID
:
"QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ"
,
Address
:
"/ip4/104.131.131.82/tcp/4001"
,
},
},
Datastore
:
ds
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment