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: with:
# list of Docker images to use as base name for tags # list of Docker images to use as base name for tags
images: | images: |
hascheksolutions/opentrashmail hascheksolutions/pictshare
ghcr.io/hascheksolutions/opentrashmail ghcr.io/hascheksolutions/pictshare
# generate Docker tags based on the following events/attributes # generate Docker tags based on the following events/attributes
tags: | tags: |
type=schedule type=schedule

View File

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