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

config: add --maxsameip to limit # of conns to same IP #1517

Merged
merged 1 commit into from
Nov 15, 2018
Merged

config: add --maxsameip to limit # of conns to same IP #1517

merged 1 commit into from
Nov 15, 2018

Conversation

dajohi
Copy link
Member

@dajohi dajohi commented Nov 7, 2018

No description provided.

Copy link
Member

@davecgh davecgh left a comment

Choose a reason for hiding this comment

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

I haven't looked at this closely, but I'm pretty sure you're going to either need to whitelist 127.0.0.1 in the rpctest harness since it makes multiple connections or otherwise allow the tests more connections. This will cause an issue with simnet setups as well.

Alternatively, perhaps the code should automatically whitelist localhost for both IPv4 and IPv6?

@davecgh davecgh changed the title [config]: add --maxsameip to limit # of conns to same IP config: add --maxsameip to limit # of conns to same IP Nov 7, 2018
davecgh
davecgh previously requested changes Nov 7, 2018
Copy link
Member

@davecgh davecgh left a comment

Choose a reason for hiding this comment

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

Also, I think it should probably allow 0 to be specified to disable it. Please don't forget to update doc.go with the new flag.

@davecgh davecgh added this to the 1.4.0 milestone Nov 14, 2018
server.go Outdated Show resolved Hide resolved
server.go Outdated Show resolved Hide resolved
@dajohi dajohi dismissed davecgh’s stale review November 15, 2018 17:33

good catch. fixed.

@davecgh davecgh merged commit 653b7c5 into decred:master Nov 15, 2018
@dajohi dajohi deleted the maxsameip branch February 28, 2019 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants