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
d1f9efb3
Commit
d1f9efb3
authored
Jun 05, 2019
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge pull request #6415 from sanderpick/sander/move-discovery
libp2p: moves discovery after host listen
parent
a7d3d031
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
core/node/groups.go
core/node/groups.go
+1
-1
No files found.
core/node/groups.go
View file @
d1f9efb3
...
...
@@ -96,11 +96,11 @@ func LibP2P(bcfg *BuildCfg, cfg *config.Config) fx.Option {
BaseLibP2P
,
fx
.
Provide
(
libp2p
.
AddrFilters
(
cfg
.
Swarm
.
AddrFilters
)),
fx
.
Invoke
(
libp2p
.
SetupDiscovery
(
cfg
.
Discovery
.
MDNS
.
Enabled
,
cfg
.
Discovery
.
MDNS
.
Interval
)),
fx
.
Provide
(
libp2p
.
AddrsFactory
(
cfg
.
Addresses
.
Announce
,
cfg
.
Addresses
.
NoAnnounce
)),
fx
.
Provide
(
libp2p
.
SmuxTransport
(
bcfg
.
getOpt
(
"mplex"
))),
fx
.
Provide
(
libp2p
.
Relay
(
cfg
.
Swarm
.
DisableRelay
,
cfg
.
Swarm
.
EnableRelayHop
)),
fx
.
Invoke
(
libp2p
.
StartListening
(
cfg
.
Addresses
.
Swarm
)),
fx
.
Invoke
(
libp2p
.
SetupDiscovery
(
cfg
.
Discovery
.
MDNS
.
Enabled
,
cfg
.
Discovery
.
MDNS
.
Interval
)),
fx
.
Provide
(
libp2p
.
Security
(
!
bcfg
.
DisableEncryptedConnections
,
cfg
.
Experimental
.
PreferTLS
)),
...
...
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