ssb: Why would I not log the host of failed DNS requests?
This commit is contained in:
parent
8273277c91
commit
f1dee2a089
@ -2861,7 +2861,7 @@ void tf_ssb_connect(tf_ssb_t* ssb, const char* host, int port, const uint8_t* ke
|
|||||||
int r = uv_getaddrinfo(ssb->loop, &connect->req, _tf_on_connect_getaddrinfo, host, NULL, &(struct addrinfo) { .ai_family = AF_INET });
|
int r = uv_getaddrinfo(ssb->loop, &connect->req, _tf_on_connect_getaddrinfo, host, NULL, &(struct addrinfo) { .ai_family = AF_INET });
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
{
|
{
|
||||||
tf_printf("uv_getaddrinfo: %s\n", uv_strerror(r));
|
tf_printf("uv_getaddrinfo(%s): %s\n", host, uv_strerror(r));
|
||||||
tf_free(connect);
|
tf_free(connect);
|
||||||
tf_ssb_unref(ssb);
|
tf_ssb_unref(ssb);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user