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

Use random available ports for listening #926

Merged
merged 9 commits into from Oct 24, 2019
Merged

Conversation

kishansagathiya
Copy link
Contributor

@kishansagathiya kishansagathiya commented Sep 23, 2019

Fixes #794

@kishansagathiya kishansagathiya marked this pull request as ready for review September 23, 2019 07:45
cmd/ipfs-cluster-service/main.go Outdated Show resolved Hide resolved
cmd/ipfs-cluster-service/main.go Outdated Show resolved Hide resolved
cmd/ipfs-cluster-service/main.go Outdated Show resolved Hide resolved
cmd/ipfs-cluster-service/main.go Outdated Show resolved Hide resolved
cmd/ipfs-cluster-service/main.go Outdated Show resolved Hide resolved
cmd/ipfs-cluster-service/main.go Outdated Show resolved Hide resolved
cmd/ipfs-cluster-service/main.go Outdated Show resolved Hide resolved
cmd/ipfs-cluster-service/main.go Outdated Show resolved Hide resolved
cmd/ipfs-cluster-service/main.go Outdated Show resolved Hide resolved
cmd/ipfs-cluster-service/main.go Outdated Show resolved Hide resolved
cmd/ipfs-cluster-service/main.go Outdated Show resolved Hide resolved
cmd/ipfs-cluster-service/main.go Outdated Show resolved Hide resolved
cmd/ipfs-cluster-service/main.go Outdated Show resolved Hide resolved
cmd/ipfs-cluster-service/main.go Outdated Show resolved Hide resolved
cmd/ipfs-cluster-service/main.go Outdated Show resolved Hide resolved
Comment on lines +14 to +17
func RandomizePorts(m ma.Multiaddr) (ma.Multiaddr, error) {
var prev string

var err error
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice and clean code, thanks

@hsanjuan hsanjuan added the RFM Ready for Merge label Oct 23, 2019
@hsanjuan
Copy link
Collaborator

note to self: remember to squash

@hsanjuan hsanjuan merged commit 7b49926 into master Oct 24, 2019
@hsanjuan hsanjuan deleted the feat/random-ports branch October 24, 2019 15:54
@hsanjuan hsanjuan mentioned this pull request Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFM Ready for Merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

service: --random-ports flag for init
2 participants