-
-
Notifications
You must be signed in to change notification settings - Fork 371
Open
Labels
Description
Shlink version
v4.6.0
PHP version
8.4
How do you serve Shlink
Self-hosted Apache
Database engine
MariaDB
Database version
10.11.14
Current behavior
First of all, thank you for this tool and all the work done so far.
"An unexpected error occurred" when Short URL is requested.
Error in shlink log
Shlink.ERROR - Shlinkio\Shlink\Core\Exception\InvalidIpFormatException: Provided IP xxxx:xxxx:xxxx::xxxx does not have the right format. Expected X.X.X.X in PATH/module/Core/src/Exception/InvalidIpFormatException.php:13
Apache Log shows a 500 status code.
Expected behavior
Redirect properly:
Short URL -> (default) Long URL
Short URL -> alternative Long URL setup in redirect rule.
Minimum steps to reproduce
- Create a Short URL
- Create dynamic redirect rule, based on IP. (no matter IPv6 or IPv4)
- Try connecting via curl with
curl -4I https://short.urlandcurl -6I https://short.url - IPv4 (curl -4) works. IPv6 (curl -6) does not work
EDIT: added more context on creation of dynamic redirect rule