File tree Expand file tree Collapse file tree
src/Core/src/App/src/Service Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public static function getUserIp(array $server): mixed
2828 // check if HTTP_X_FORWARDED_FOR is public network IP
2929 if (isset ($ server ['HTTP_X_FORWARDED_FOR ' ]) && self ::isPublicIp ($ server ['HTTP_X_FORWARDED_FOR ' ])) {
3030 $ realIp = $ server ['HTTP_X_FORWARDED_FOR ' ];
31- // check if HTTP_CLIENT_IP is public network IP
31+ // check if HTTP_CLIENT_IP is public network IP
3232 } elseif (isset ($ server ['HTTP_CLIENT_IP ' ]) && self ::isPublicIp ($ server ['HTTP_CLIENT_IP ' ])) {
3333 $ realIp = $ server ['HTTP_CLIENT_IP ' ];
3434 } else {
@@ -38,7 +38,7 @@ public static function getUserIp(array $server): mixed
3838 // check if HTTP_X_FORWARDED_FOR is public network IP
3939 if (getenv ('HTTP_X_FORWARDED_FOR ' ) && self ::isPublicIp ((string ) getenv ('HTTP_X_FORWARDED_FOR ' ))) {
4040 $ realIp = getenv ('HTTP_X_FORWARDED_FOR ' );
41- // check if HTTP_CLIENT_IP is public network IP
41+ // check if HTTP_CLIENT_IP is public network IP
4242 } elseif (getenv ('HTTP_CLIENT_IP ' ) && self ::isPublicIp ((string ) getenv ('HTTP_CLIENT_IP ' ))) {
4343 $ realIp = getenv ('HTTP_CLIENT_IP ' );
4444 } else {
You can’t perform that action at this time.
0 commit comments