/[monit]/monit/protocols/http.c
ViewVC logotype

Diff of /monit/protocols/http.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.20 by hauk, Wed Jul 30 06:37:36 2003 UTC revision 1.21 by hauk, Fri Aug 1 21:35:59 2003 UTC
# Line 125  int check_http(Socket_T s) { Line 125  int check_http(Socket_T s) {
125   */   */
126  static char *get_host_header(Socket_T s, char *hostbuf) {  static char *get_host_header(Socket_T s, char *hostbuf) {
127    
128    if(! strcmp(LOCALHOST, Socket_get_remote_hostname(s)) ||    if(! strcmp(LOCALHOST, socket_get_remote_hostname(s)) ||
129       inet_aton(Socket_get_remote_hostname(s), NULL)) {       inet_aton(socket_get_remote_hostname(s), NULL)) {
130    
131      *hostbuf= 0;      *hostbuf= 0;
132    
133    } else {    } else {
134    
135      snprintf(hostbuf, STRLEN, "%s:%d",      snprintf(hostbuf, STRLEN, "%s:%d",
136               Socket_get_remote_hostname(s),               socket_get_remote_hostname(s),
137               socket_get_remote_port(s));               socket_get_remote_port(s));
138            
139    }    }

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26