0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-02 10:08:56 +02:00

modules/s_dns: Return tag id down stack if possible.

This commit is contained in:
Jason Volk 2019-03-22 10:41:26 -07:00
parent 68e3655a1d
commit 12744182c2
2 changed files with 3 additions and 3 deletions

View file

@ -49,7 +49,7 @@ namespace ircd::net::dns
// Resolver instance
struct resolver extern *resolver;
void resolver_call(const hostport &, const opts &);
uint16_t resolver_call(const hostport &, const opts &);
void resolver_init(answers_callback);
void resolver_fini();
}

View file

@ -75,7 +75,7 @@ ircd::net::dns::resolver_fini()
ircd::net::dns::resolver = nullptr;
}
void
uint16_t
ircd::net::dns::resolver_call(const hostport &hp,
const opts &opts)
{
@ -94,7 +94,7 @@ ircd::net::dns::resolver_call(const hostport &hp,
host(hp)
};
resolver(hp, opts);
return resolver(hp, opts);
}
//