Lines Matching refs:host
13 static int request_check_hostname(server *srv, connection *con, buffer *host) { in request_check_hostname() argument
37 if (!host || host->used == 0) return 0; in request_check_hostname()
39 host_len = host->used - 1; in request_check_hostname()
42 if (host->ptr[0] == '[') { in request_check_hostname()
43 char *c = host->ptr + 1; in request_check_hostname()
73 if (NULL != (colon = memchr(host->ptr, ':', host_len))) { in request_check_hostname()
82 host_len = colon - host->ptr; in request_check_hostname()
89 if (host->ptr[host_len-1] == '.') { in request_check_hostname()
91 if (NULL != colon) memmove(colon-1, colon, host->used - host_len); in request_check_hostname()
92 else host->ptr[host_len-1] = '\0'; in request_check_hostname()
94 host->used -= 1; in request_check_hostname()
101 const char c = host->ptr[i]; in request_check_hostname()
114 if (!light_isalnum(host->ptr[i+1])) { in request_check_hostname()
117 } else if (!light_isdigit(host->ptr[i+1])) { in request_check_hostname()
119 } else if ('-' == host->ptr[i+1]) { in request_check_hostname()
172 if ('-' == host->ptr[i+1]) { in request_check_hostname()