set the remote address correctly in the cgi call
authorpaulr <me@pjr.cc>
Thu, 10 Nov 2011 06:21:52 +0000 (17:21 +1100)
committerpaulr <me@pjr.cc>
Thu, 10 Nov 2011 06:21:52 +0000 (17:21 +1100)
gwvplib/gwvpgitwebservice.php

index 729e58d..298c8e4 100644 (file)
@@ -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"])) {