2 Commits

Author SHA1 Message Date
Chris
de764c105c cf ip forward 2025-05-05 20:15:39 +02:00
Chris
bc1eca4014 wrong project 2023-11-13 10:30:25 +01:00
2 changed files with 3 additions and 3 deletions

View File

@@ -20,8 +20,8 @@ jobs:
with:
# list of Docker images to use as base name for tags
images: |
hascheksolutions/opentrashmail
ghcr.io/hascheksolutions/opentrashmail
hascheksolutions/pictshare
ghcr.io/hascheksolutions/pictshare
# generate Docker tags based on the following events/attributes
tags: |
type=schedule

View File

@@ -419,7 +419,7 @@ function endswith($string, $test) {
function getUserIP()
{
if(isCloudflare())
if(isCloudflare() || $_SERVER['HTTP_CF_CONNECTING_IP'])
return $_SERVER['HTTP_CF_CONNECTING_IP'];
$client = @$_SERVER['HTTP_CLIENT_IP'];
$forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];