| @@ -139,9 +139,9 @@ | ||
| 139 | 139 | $condition = ['form_id' => $this->formId]; |
| 140 | 140 | |
| 141 | 141 | // Add user condition |
| 142 | 142 | if ('per_user_ip' === $userType) { |
| 143 | - $condition['user_ip'] = ip2long($userValue); | |
| 143 | + $condition['user_ip'] = IpTool::storageValue($userValue); | |
| 144 | 144 | } elseif ('per_user_id' === $userType) { |
| 145 | 145 | $condition['user_id'] = $userValue; |
| 146 | 146 | } else { |
| 147 | 147 | return 0; |
| @@ -166,9 +166,9 @@ | ||
| 166 | 166 | $formEntry = new FormEntryModel(); |
| 167 | 167 | |
| 168 | 168 | $condition = [ |
| 169 | 169 | 'form_id' => $this->formId, |
| 170 | - 'user_ip' => ip2long($ipAddress) | |
| 170 | + 'user_ip' => IpTool::storageValue($ipAddress) | |
| 171 | 171 | ]; |
| 172 | 172 | |
| 173 | 173 | // Burst timeframes use different intervals |
| 174 | 174 | $burstIntervals = [ |