projects
/
gwvp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
5c414a8
)
set the remote address correctly in the cgi call
author
paulr
<me@pjr.cc>
Thu, 10 Nov 2011 06:21:52 +0000 (17:21 +1100)
committer
paulr
<me@pjr.cc>
Thu, 10 Nov 2011 06:21:52 +0000 (17:21 +1100)
gwvplib/gwvpgitwebservice.php
patch
|
blob
|
history
diff --git
a/gwvplib/gwvpgitwebservice.php
b/gwvplib/gwvpgitwebservice.php
index
729e58d
..
298c8e4
100644
(file)
--- 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"])) {