MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / is_localhost

Function is_localhost

socket_info.c:867–872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

865#define ACCEPT_SUBDOMAIN_ALIAS(flags) flags & SI_ACCEPT_SUBDOMAIN_ALIAS
866
867int is_localhost(struct socket_info *si)
868{
869 return (STR_IMATCH(si->name, "localhost") ||
870 STR_IMATCH(si->name, "127.0.0.1") ||
871 STR_IMATCH(si->name, "0:0:0:0:0:0:0:1") || STR_IMATCH(si->name, "::1"));
872}
873
874int fix_socket(struct socket_info_full *sif, int add_aliases)
875{

Callers 2

fix_socket_listFunction · 0.85
sock_mgm_use_socketFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected