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

Function h_nsrecord

src/conf.c:627–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

625}
626
627static int h_nsrecord(int argc, unsigned char **argv){
628#ifndef NOIPV6
629 struct sockaddr_in6 sa;
630#else
631 struct sockaddr_in sa;
632#endif
633 memset(&sa, 0, sizeof(sa));
634 if(!getip46(46, argv[2], (struct sockaddr *)&sa)) return 1;
635
636 hashadd(*SAFAMILY(&sa)==AF_INET6?&dns6_table:&dns_table, argv[1], SAADDR(&sa), (time_t)0xffffffff);
637 return 0;
638}
639
640static int h_dialer(int argc, unsigned char **argv){
641 if(conf.demanddialprog) myfree(conf.demanddialprog);

Callers

nothing calls this directly

Calls 1

hashaddFunction · 0.85

Tested by

no test coverage detected