author | Joey Hess <joey@kitenet.net> | |
Fri, 24 Oct 2008 05:48:50 +0000 (01:48 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 24 Oct 2008 23:34:01 +0000 (16:34 -0700) | ||
commit | 53ffb878a94c3eae7c7f57e05568aedcfb77e57f | |
tree | bb5eca12073ff0b85feaa22f122144a079bc0a84 | tree | snapshot |
parent | 759ad19e772a79a2a5ae6b7377d57eb21d29e6a0 | commit | diff |
git-daemon: set REMOTE_ADDR to client address
This allows hooks like pre-receive to look at the client's IP
address.
Of course the IP address can't be used to get strong security;
git-daemon isn't the right thing to use if you need that. However,
basic IP address checking can be good enough in some situations.
REMOTE_ADDR is the same environment variable used to communicate the
client's address to CGI scripts.
Signed-off-by: Joey Hess <joey@kitenet.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This allows hooks like pre-receive to look at the client's IP
address.
Of course the IP address can't be used to get strong security;
git-daemon isn't the right thing to use if you need that. However,
basic IP address checking can be good enough in some situations.
REMOTE_ADDR is the same environment variable used to communicate the
client's address to CGI scripts.
Signed-off-by: Joey Hess <joey@kitenet.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-daemon.txt | diff | blob | history | |
daemon.c | diff | blob | history |