|
@@ 99-101 (lines=3) @@
|
| 96 |
|
return $response; |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
if (false == $this->storage->clientConnect($profileId, $commonName, $ip4, $ip6, $connectedAt)) { |
| 100 |
|
return new ApiResponse('connect', ['ok' => false, 'error' => 'unable to write connect event to log']); |
| 101 |
|
} |
| 102 |
|
|
| 103 |
|
return new ApiResponse('connect', ['ok' => true]); |
| 104 |
|
} |
|
@@ 178-180 (lines=3) @@
|
| 175 |
|
$bytesTransferred = $request->getPostParameter('bytes_transferred'); |
| 176 |
|
InputValidation::bytesTransferred($bytesTransferred); |
| 177 |
|
|
| 178 |
|
if (false === $this->storage->clientDisconnect($profileId, $commonName, $ip4, $ip6, $connectedAt, $disconnectedAt, $bytesTransferred)) { |
| 179 |
|
return new ApiResponse('disconnect', ['ok' => false, 'error' => 'unable to write disconnect event to log']); |
| 180 |
|
} |
| 181 |
|
|
| 182 |
|
return new ApiResponse('disconnect', ['ok' => true]); |
| 183 |
|
} |