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

Support for IPv6 in client_ip Field #14

Open
igor-kamil opened this issue Jan 27, 2025 · 0 comments
Open

Support for IPv6 in client_ip Field #14

igor-kamil opened this issue Jan 27, 2025 · 0 comments

Comments

@igor-kamil
Copy link
Contributor

We encountered an exception when using the package due to the client_ip field not accepting IPv6 addresses. Below is the exception message:

Field client_ip (or IPC) has an unacceptable value '2a02:ab04:128:bb00:70c3:d04d:5f7e:e073'. Valid client IP address has to be a properly formatted IPv4. {"exception":"[object] (Chaching\\Exceptions\\InvalidOptionsException(code: 0): Field client_ip (or IPC) has an unacceptable value '2a02:ab04:128:bb00:70c3:d04d:5f7e:e073'. Valid client IP address has to be a properly formatted IPv4. at /data/e/b/ebbc5f46-1baa-403b-a381-ab942620ace1/dokumentmagazin.sk/private/vendor/backbone/chaching/src/Chaching/Drivers/TBCardPay/Request.php:201)

To ensure compatibility, it would be great if the package could handle IPv6 addresses for the client_ip field, either by allowing them directly or providing an alternative mechanism.

Environment:

PHP version: 7.4
Package version: 0.23.1

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

No branches or pull requests

1 participant