From: paulr Date: Thu, 10 Nov 2011 06:21:52 +0000 (+1100) Subject: set the remote address correctly in the cgi call X-Git-Url: http://git.pjr.cc/?a=commitdiff_plain;h=6199ff804b1a84555edfd5320f2301c489c06b03;p=gwvp.git set the remote address correctly in the cgi call --- diff --git a/gwvplib/gwvpgitwebservice.php b/gwvplib/gwvpgitwebservice.php index 729e58d..298c8e4 100644 --- a/gwvplib/gwvpgitwebservice.php +++ b/gwvplib/gwvpgitwebservice.php @@ -334,7 +334,7 @@ function gwvp_callGitBackend($username, $repo) $procenv["QUERY_STRING"] = "$qs"; $procenv["HTTP_USER_AGENT"] = "git/1.7.1"; $procenv["REMOTE_USER"] = "$username"; - $procenv["REMOTE_ADDR"] = "1.2.3.4"; + $procenv["REMOTE_ADDR"] = $_SERVER["REMOTE_ADDR"]; $procenv["AUTH_TYPE"] = "Basic"; if(isset($_SERVER["CONTENT_TYPE"])) {