1 2 3 4 5 6 7 8 9 10 11
<?php $trustedProxies = getenv('TRUSTED_PROXIES'); if ($trustedProxies) { $trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies))); } else { $trustedProxies = null; } $CONFIG['trusted_proxies'] = $trustedProxies;