From 6199ff804b1a84555edfd5320f2301c489c06b03 Mon Sep 17 00:00:00 2001 From: paulr Date: Thu, 10 Nov 2011 17:21:52 +1100 Subject: [PATCH] set the remote address correctly in the cgi call --- gwvplib/gwvpgitwebservice.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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"])) { -- 1.7.0.4