From ac08ed7cf9ce3e829263632e4fa9f82eecca647a Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Thu, 1 Aug 2019 18:31:18 +0200 Subject: [PATCH] Updated changelog --- CHANGELOG.md | 9 +++++++++ config/autoload/ip-address.global.php | 6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 88214c26..1f7cd6f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and this Sadly, this feature is not enabled when serving shlink via apache/nginx, where you should still rely on cronjobs. +* [#384](https://github.com/shlinkio/shlink/issues/384) Improved how remote IP addresses are detected. + + This new set of headers is now also inspected looking for the IP address: + + * CF-Connecting-IP + * True-Client-IP + * X-Real-IP + #### Changed * *Nothing* @@ -49,6 +57,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and this * [#416](https://github.com/shlinkio/shlink/issues/416) Fixed error thrown when trying to locate visits after the GeoLite2 DB is downloaded for the first time. * [#424](https://github.com/shlinkio/shlink/issues/424) Update wkhtmltoimage to version 0.12.5 +* [#427](https://github.com/shlinkio/shlink/issues/427) Fixed shlink being unusable after a database error on swoole contexts. ## 1.17.0 - 2019-05-13 diff --git a/config/autoload/ip-address.global.php b/config/autoload/ip-address.global.php index 2def62fd..edbebf69 100644 --- a/config/autoload/ip-address.global.php +++ b/config/autoload/ip-address.global.php @@ -5,14 +5,14 @@ return [ 'ip_address_resolution' => [ 'headers_to_inspect' => [ + 'CF-Connecting-IP', + 'True-Client-IP', + 'X-Real-IP', 'Forwarded', 'X-Forwarded-For', 'X-Forwarded', 'X-Cluster-Client-Ip', 'Client-Ip', - 'X-Real-IP', - 'CF-Connecting-IP', - 'True-Client-IP', ], ],