diff options
author | Volker Lendecke <vlendec@samba.org> | 2003-11-07 09:03:02 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2003-11-07 09:03:02 +0000 |
commit | d5573ccde3b5c39eb9a4637d5a9d7a95b66d86e3 (patch) | |
tree | 12e0941a99f4b6c49de0156a1613a22d41e2794e /source3/web/cgi.c | |
parent | c22afa7d97b8fe2fc00aa5da73ed1d2d8669cd1c (diff) | |
download | samba-d5573ccde3b5c39eb9a4637d5a9d7a95b66d86e3.tar.gz samba-d5573ccde3b5c39eb9a4637d5a9d7a95b66d86e3.tar.xz samba-d5573ccde3b5c39eb9a4637d5a9d7a95b66d86e3.zip |
Simple rename of get_socket_addr to get_peer_addr and get_socket_name to
get_peer_name. This is to get closer to the getsockname/getpeername system
functions.
Next step will be the %i macro for the local IP address. I still want to play
%L-games in times of port 445.
Volker
(This used to be commit d7162122eaf5d897e5de51604e431bfbaa20e905)
Diffstat (limited to 'source3/web/cgi.c')
-rw-r--r-- | source3/web/cgi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c index 6778e596569..49a8fa92de4 100644 --- a/source3/web/cgi.c +++ b/source3/web/cgi.c @@ -578,7 +578,7 @@ return the hostname of the client char *cgi_remote_host(void) { if (inetd_server) { - return get_socket_name(1,False); + return get_peer_name(1,False); } return getenv("REMOTE_HOST"); } @@ -589,7 +589,7 @@ return the hostname of the client char *cgi_remote_addr(void) { if (inetd_server) { - return get_socket_addr(1); + return get_peer_addr(1); } return getenv("REMOTE_ADDR"); } |