@@ 58-60 (lines=3) @@ | ||
55 | */ |
|
56 | function anonimizeIpv4Compatibility(string $ip):string |
|
57 | { |
|
58 | if (isIPv4Compatibility($ip)) { |
|
59 | return substr($ip, 0, strrpos($ip, ".") + 1) . '0'; |
|
60 | } |
|
61 | return '0.0.0.0'; |
|
62 | } |
|
63 | ||
@@ 100-102 (lines=3) @@ | ||
97 | */ |
|
98 | function anonimizeIpv4(string $ip):string |
|
99 | { |
|
100 | if (isIPv4($ip)) { |
|
101 | return substr($ip, 0, strrpos($ip, ".") + 1) . '0'; |
|
102 | } |
|
103 | return '0.0.0.0'; |
|
104 | } |
|
105 |