]>
Commit | Line | Data |
---|---|---|
6563720d | 1 | diff -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 |