Skip to content

Commit c66d70e

Browse files
committed
docs: fix doc comment
A mistake in merging.
1 parent ba836a6 commit c66d70e

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

app/Config/App.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -328,16 +328,19 @@ class App extends BaseConfig
328328
*
329329
* If your server is behind a reverse proxy, you must whitelist the proxy
330330
* IP addresses from which CodeIgniter should trust headers such as
331-
* HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
331+
* X-Forwarded-For or Client-IP in order to properly identify
332332
* the visitor's IP address.
333333
*
334-
* You can use both an array or a comma-separated list of proxy addresses,
335-
* as well as specifying whole subnets. Here are a few examples:
334+
* You need to set a proxy IP address or IP address with subnets and
335+
* the HTTP header for the client IP address.
336336
*
337-
* Comma-separated: '10.0.1.200,192.168.5.0/24'
338-
* Array: ['10.0.1.200', '192.168.5.0/24']
337+
* Here are some examples:
338+
* [
339+
* '10.0.1.200' => 'X-Forwarded-For',
340+
* '192.168.5.0/24' => 'X-Real-IP',
341+
* ]
339342
*
340-
* @var string|string[]
343+
* @var array<string, string>
341344
*/
342345
public array $proxyIPs = [];
343346

0 commit comments

Comments
 (0)