Open boryn opened 2 years ago
At this moment, if IP is not found, the loop skips but eventually the last resolved IP is taken.
IMHO it should be the first IP grabbed, for example I'd like to get real user IP from cloudflare using this code:
'lookup' => [ 'server' => [ 'HTTP_CF_CONNECTING_IP', 'REMOTE_ADDR', ], 'headers' => [ ], ],
Now, I need to use 'HTTP_CF_CONNECTING_IP' as the last option which is not intuitive, and we unnecessarily loop through all the items.
'HTTP_CF_CONNECTING_IP'
Solves: https://github.com/jamesmills/laravel-timezone/issues/78
At this moment, if IP is not found, the loop skips but eventually the last resolved IP is taken.
IMHO it should be the first IP grabbed, for example I'd like to get real user IP from cloudflare using this code:
Now, I need to use
'HTTP_CF_CONNECTING_IP'
as the last option which is not intuitive, and we unnecessarily loop through all the items.Solves: https://github.com/jamesmills/laravel-timezone/issues/78