MCPcopy Create free account
hub / github.com/apache/httpd / find_default_server

Function find_default_server

server/vhost.c:425–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423}
424
425static ipaddr_chain *find_default_server(apr_port_t port)
426{
427 server_addr_rec *sar;
428 ipaddr_chain *trav = NULL;
429 ipaddr_chain *wild_match = NULL;
430
431 for (trav = default_list; trav; trav = trav->next) {
432 sar = trav->sar;
433 if (sar->host_port == port) {
434 /* match! */
435 return trav;
436 }
437 if (wild_match == NULL && sar->host_port == 0) {
438 /* don't break, continue looking for an exact match */
439 wild_match = trav;
440 }
441 }
442 return wild_match;
443}
444
445#if APR_HAVE_IPV6
446#define IS_IN6_ANYADDR(ad) ((ad)->family == APR_INET6 \

Callers 2

ap_fini_vhost_configFunction · 0.85
ap_update_vhost_given_ipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected