mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-22 08:09:19 +02:00
servern now get a topdomain other than NULL
This commit is contained in:
parent
0fd3d9e62e
commit
46d3053540
12
src/dns.c
12
src/dns.c
|
@ -39,16 +39,8 @@
|
|||
|
||||
static int decodepacket(const char*, char*, int);
|
||||
|
||||
static char *topdomain;
|
||||
|
||||
|
||||
/* XXX: only used from server, remove! */
|
||||
void
|
||||
dns_set_topdomain(const char *domain)
|
||||
{
|
||||
topdomain = strdup(domain);
|
||||
}
|
||||
|
||||
/* XXX: remove this (used by server) and make topdomain static in iodine[d].c */
|
||||
extern char *topdomain;
|
||||
|
||||
int
|
||||
dns_encode(char *buf, size_t buflen, struct query *q, qr_t qr, char *data, size_t datalen)
|
||||
|
|
|
@ -44,7 +44,7 @@ struct packet packetbuf;
|
|||
struct packet outpacket;
|
||||
int outid;
|
||||
|
||||
static char *topdomain;
|
||||
char *topdomain;
|
||||
|
||||
struct query q;
|
||||
|
||||
|
|
Loading…
Reference in New Issue