WordPress.org

Forums

podPress
Server IP when using Varnish (1 post)

  1. Guilherme Euler
    Member
    Posted 1 year ago #

    I have a client using podpress on my server and the "Raw Stats" aways display the server IP as downloaded the file... I solved it changing the line 2070 of "podpress_functions.php" from:
    $ip = addslashes($_SERVER['REMOTE_ADDR']);
    to
    $ip = addslashes(str_replace(",", "",$_SERVER['HTTP_X_FORWARDED_FOR']));

    Is possible to make this change permanent on Podpress? It's correct to do?

    (The str_replace was used because the server response for HTTP_X_FORWARDED_FOR is "USER.IP.ADD.RESS, PROXY.IP.ADD.RESS and Podpress was grabbing only "USER.IP.ADD.RESS," on database)

    http://wordpress.org/plugins/podpress/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic