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

Make the list of cidrs and hosts configurable #10

Merged
merged 13 commits into from
Apr 2, 2019
Merged

Make the list of cidrs and hosts configurable #10

merged 13 commits into from
Apr 2, 2019

Conversation

Songmu
Copy link
Collaborator

@Songmu Songmu commented Mar 25, 2019

based on #9 implementation. I use functional option pattern for backward compatibility.

@Songmu Songmu changed the title Make the list of cidrs and hosts configurable WIP: Make the list of cidrs and hosts configurable Mar 25, 2019
@Songmu
Copy link
Collaborator Author

Songmu commented Apr 2, 2019

Now we can configure forbidden and allow hosts and CIDRs in constructor using following functional option without breaking changes. @hamstah

  • paranoidhttp.ForbiddenIPNets
  • paranoidhttp.PermittedIPNets
  • paranoidhttp.ForbiddenHosts

Could you try it?

@Songmu Songmu merged commit 8633c16 into master Apr 2, 2019
@Songmu Songmu changed the title WIP: Make the list of cidrs and hosts configurable Make the list of cidrs and hosts configurable Apr 2, 2019
@Songmu Songmu deleted the add-config branch April 2, 2019 09:58
Songmu added a commit that referenced this pull request Apr 2, 2019
## [v0.2.0](v0.1.0...v0.2.0) (2019-04-02)

* Make the list of cidrs and hosts configurable [#10](#10) ([Songmu](https://github.com/Songmu))
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