Add logic for IP-based dynamic redirects

This commit is contained in:
Alejandro Celaya
2024-07-17 19:51:13 +02:00
parent 1312ea61f4
commit f49d98f2ea
9 changed files with 102 additions and 25 deletions

View File

@@ -14,8 +14,9 @@ use function array_map;
use function explode;
use function implode;
use function Shlinkio\Shlink\Core\ArrayUtils\some;
use function str_contains;
class IpAddressUtils
final class IpAddressUtils
{
/**
* Checks if an IP address matches any of provided groups.