Undefined index: HTTP_CF_CONNECTING_IP #232

Closed
opened 2021-06-21 22:21:14 +00:00 by Denmark · 2 comments

When setting TINYIB_CLOUDFLARE to true in the settings.php file, tinyib throws this error;
PHP message: PHP Notice: Undefined index: HTTP_CF_CONNECTING_IP in /var/www/html/inc/functions.php on line 946"

When setting `TINYIB_CLOUDFLARE` to true in the settings.php file, tinyib throws this error; `PHP message: PHP Notice: Undefined index: HTTP_CF_CONNECTING_IP in /var/www/html/inc/functions.php on line 946"`

Are you positive you're connecting via CloudFlare? You could create a script with the following conents:

<?php
echo $_SERVER['REMOTE_ADDR'];

And then verify that the address displayed belongs to CloudFlare.

Are you positive you're connecting via CloudFlare? You could create a script with the following conents: ``` <?php echo $_SERVER['REMOTE_ADDR']; ``` And then verify that the address displayed belongs to CloudFlare.

I found the problem. I'm also running a .onion site and of course users aren't connecting via a CloudFlare IP there but via the IP 127.0.0.1. On my clearnet version it works fine.

I found the problem. I'm also running a .onion site and of course users aren't connecting via a CloudFlare IP there but via the IP 127.0.0.1. On my clearnet version it works fine.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tslocum/tinyib#232
There is no content yet.