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

Function uses_port

modules/md/mod_md.c:420–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418}
419
420static int uses_port(server_rec *s, int port)
421{
422 server_addr_rec *sa;
423 int match = 0;
424 for (sa = s->addrs; sa; sa = sa->next) {
425 if (sa->host_port == port) {
426 /* host_addr might be general (0.0.0.0) or specific, we count this as match */
427 match = 1;
428 }
429 else {
430 /* uses other port/wildcard */
431 return 0;
432 }
433 }
434 return match;
435}
436
437static apr_status_t detect_supported_protocols(md_mod_conf_t *mc, server_rec *s,
438 apr_pool_t *p, int log_level)

Callers 1

get_public_https_serverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected