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

cli: libp2p listen addresses #59

Closed
wants to merge 1 commit into from
Closed
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
13 changes: 12 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,18 @@
EnvVars: []string{"RAINBOW_BLOCKSTORE"},
Usage: "Type of blockstore to use, such as flatfs or badger. See https://github.com/ipfs/rainbow/blockstore.md for more details",
},
&cli.StringFlag{
Name: "listen-addrs",
Value: strings.Join([]string{"/ip4/0.0.0.0/tcp/4001",
"/ip4/0.0.0.0/udp/4001/quic-v1",
"/ip4/0.0.0.0/udp/4001/quic-v1/webtransport",
"/ip6/::/tcp/4001",
"/ip6/::/udp/4001/quic-v1",
"/ip6/::/udp/4001/quic-v1/webtransport"}, ","),
EnvVars: []string{"RAINBOW_LIBP2P_LISTEN_ADDRS"},
Usage: "Multiaddresses for libp2p to listen on (comma-separated)",
},

Check warning on line 195 in main.go

View check run for this annotation

Codecov / codecov/patch

main.go#L185-L195

Added lines #L185 - L195 were not covered by tests
}

app.Commands = []*cli.Command{
{
Name: "gen-seed",
Expand Down Expand Up @@ -281,6 +291,7 @@
DHTSharedHost: cctx.Bool("dht-shared-host"),
DenylistSubs: getCommaSeparatedList(cctx.String("denylists")),
Peering: peeringAddrs,
ListenAddrs: getCommaSeparatedList(cctx.String("listen-addrs")),

Check warning on line 294 in main.go

View check run for this annotation

Codecov / codecov/patch

main.go#L294

Added line #L294 was not covered by tests
}

goLog.Debugf("Rainbow config: %+v", cfg)
Expand Down
Loading