]> git.pld-linux.org Git - packages/monit.git/blame - monit-localhost-http.patch
- release 2
[packages/monit.git] / monit-localhost-http.patch
CommitLineData
6563720d 1diff -ur monit-4.8/util.c monit-4.8-n/util.c
2--- monit-4.8/util.c 2006-04-27 14:16:03.000000000 -0600
3+++ monit-4.8-n/util.c 2006-10-04 10:35:39.000000000 -0600
4@@ -1738,16 +1738,11 @@
5 * @return the hostBuffer
6 */
7 char *Util_getHTTPHostHeader(Socket_T s, char *hostBuf, int len) {
8- if(! strcmp(LOCALHOST, socket_get_remote_host(s)) ||
9- inet_aton(socket_get_remote_host(s), NULL)) {
10- *hostBuf= 0;
11- } else {
12- if(socket_get_remote_port(s)==80)
13- snprintf(hostBuf, len, "%s", socket_get_remote_host(s));
14- else
15- snprintf(hostBuf, len, "%s:%d", socket_get_remote_host(s),
16- socket_get_remote_port(s));
17- }
18+ if(socket_get_remote_port(s)==80)
19+ snprintf(hostBuf, len, "%s", socket_get_remote_host(s));
20+ else
21+ snprintf(hostBuf, len, "%s:%d", socket_get_remote_host(s),
22+ socket_get_remote_port(s));
23 return hostBuf;
24 }
25
This page took 0.036087 seconds and 4 git commands to generate.