File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments