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

Cache ip ranges #7

Merged
merged 3 commits into from Jul 3, 2021
Merged

Conversation

KarimPwnz
Copy link
Contributor

@KarimPwnz KarimPwnz commented Jul 3, 2021

Given the size of the AWS IP ranges file, this PR makes onaws cache it. The cache is updated when the etag header, which represents the MD5 checksum of the remote data, does not match the local data checksum.

The local cache is located at ~/.onaws/ip-ranges.json, and all functionality related to fetching the IP ranges has been moved to ipranges.py.

@amalmurali47 amalmurali47 merged commit 2e70d80 into amalmurali47:main Jul 3, 2021
@KarimPwnz KarimPwnz deleted the feature-cache-data branch July 4, 2021 04:24
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