[ZendTo] zendto (5.23-2) Debian 10: " Undefined variable: NSSDROPBOX_PREFS"
zend.to at neilzone.co.uk
zend.to at neilzone.co.uk
Mon Mar 23 17:19:55 GMT 2020
> On 23 Mar 2020, at 17:15, zend.to at neilzone.co.uk wrote:
>
> 2031 if (substr(getClientIP($NSSDROPBOX_PREFS), 0, $sublen) == $subnet) {
Perhaps a silly question. When I check the getClientIP function in NSSUtils.php, I find:
201 /* Fetch the REMOTE_ADDR of the http connection, even through proxies */
202 function getClientIP($prefs)
203 {
204 $useheaders = @$prefs['behindLoadBalancer'];
205 // Get the forwarded IP if it exists
206 if ( $useheaders && isset($_SERVER['HTTP_CLIENT_IP']) && array_key_exists('HTTP_CLIENT_IP', $_SERVER) ) {
207 $the_ip = $_SERVER['HTTP_CLIENT_IP'];
208 } elseif ( $useheaders && isset($_SERVER['HTTP_X_FORWARDED_FOR']) && array_key_exists('HTTP_X_FORWARDED_FOR', $_SERVER )) {
209 $the_ips = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);
210 $the_ip = trim($the_ips[0]);
211 } elseif ( isset($_SERVER['REMOTE_ADDR']) ) {
212 $the_ip = $_SERVER['REMOTE_ADDR'];
213 } else {
214 $the_ip = '0.0.0.0';
215 }
Nothing jumps out at me, and I have the “behindLoadBalancer” preference set to FALSE.
The only thing crossing is mind is that I’m connecting over IPv6, and the IP in line 214 appears to be an IPv4 placeholder.
But I’m just guessing at this point.
Neil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jul.es/pipermail/zendto/attachments/20200323/f86f5280/attachment.html>
More information about the ZendTo
mailing list