-
Notifications
You must be signed in to change notification settings - Fork 86
Add IPinfoLite to support Lite API
#93
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
Add IPinfoLite to support Lite API
#93
Conversation
|
@silvanocerza, I have been meaning but forgot to push php#90 Fix ipv6 notations and add tests, that @rvalitov kindly implemented for us. That included some of the sanitazation fixes that you added in your PR. This introduced a merge conflict with Sorry for the confusion! |
|
No worries, I'll take care of rebasing the PR. |
85299c9 to
162828c
Compare
|
Please write a note when you're done |
|
@rvalitov Yup, think I'm done. Tests are passing now. |
| } | ||
|
|
||
| // List of bogon CIDRs. | ||
| protected $bogonNetworks = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to do this now, but we should refactor this duplication with src/IPinfo.php
max-ipinfo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
For this one I went with a completely separate API too.
I had to fix some unrelated stuff in
DefaultCachebecause it was using the IP string as the key with no sanitazion. ThetestGetBatchDetailstest inIPInfoTestis using8.8.8.8/hostnameand that the cache key as/is a reserved char.I also had to change some hard coded coordinates in the tests.