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

Fixes for sparse configs #81

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Ulexus
Copy link
Contributor

@Ulexus Ulexus commented Apr 23, 2024

I had a couple fixes for some configuration edge cases which I somehow failed to get included in the previous PR.

  • allow unknown country IPs to continue being processed
  • fix default allows for the privateIP functionality to work

- allow unknown country IPs to continue being processed
- fix default allows for the privateIP functionality to work
Comment on lines -172 to -175
if country == "-" {
return p.allowPrivate, country, nil
}

Copy link
Owner

Choose a reason for hiding this comment

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

With this check removed, the AllowPrivate option is no longer used anywhere.

Is the intention to have its behavior replaces with DefaultAllow? In that case, could you please remove AllowPrivate from the code, and also from the configuration sample in the README?

# Allow requests from private / internal networks?
allowPrivate: true

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.

None yet

2 participants