diff --git a/CHANGELOG.md b/CHANGELOG.md index e9a1c86a..d18995b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,29 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](https://semver.org). +## [Unreleased] + +#### Added + +* *Nothing* + +#### Changed + +* *Nothing* + +#### Deprecated + +* *Nothing* + +#### Removed + +* *Nothing* + +#### Fixed + +* [#624](https://github.com/shlinkio/shlink/issues/624) Fixed order in which headers for remote IP detection are inspected. + + ## 2.0.2 - 2020-01-12 #### Added diff --git a/config/autoload/client-detection.global.php b/config/autoload/client-detection.global.php index 3c6fb8b2..a49b3d93 100644 --- a/config/autoload/client-detection.global.php +++ b/config/autoload/client-detection.global.php @@ -7,11 +7,11 @@ return [ 'ip_address_resolution' => [ 'headers_to_inspect' => [ 'CF-Connecting-IP', - 'True-Client-IP', - 'X-Real-IP', - 'Forwarded', 'X-Forwarded-For', 'X-Forwarded', + 'Forwarded', + 'True-Client-IP', + 'X-Real-IP', 'X-Cluster-Client-Ip', 'Client-Ip', ],