MCPcopy Create free account
hub / github.com/3proxy/3proxy / h_authnserver

Function h_authnserver

src/conf.c:579–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

577}
578
579static int h_authnserver(int argc, unsigned char **argv){
580 char *str;
581
582 if((str = strchr((char *)argv[1], '/')))
583 *str = 0;
584 if(parsehost(46, argv[1], (struct sockaddr *)&authnserver.addr)) return 1;
585 *SAPORT(&authnserver.addr) = htons(53);
586 if(str) {
587 authnserver.usetcp = strstr(str + 1, "tcp")? 1:0;
588 *str = '/';
589 }
590 return 0;
591}
592
593static int h_fakeresolve(int argc, unsigned char **argv){
594 resolvfunc = fakeresolver;

Callers

nothing calls this directly

Calls 1

parsehostFunction · 0.85

Tested by

no test coverage detected