Support TLS query.

This commit is contained in:
Nick Peng
2018-10-14 22:52:45 +08:00
parent f68e4eda1c
commit 4e92267f24
9 changed files with 478 additions and 16 deletions

View File

@@ -1332,7 +1332,8 @@ int dns_server_socket(void)
fd = socket(gai->ai_family, gai->ai_socktype, gai->ai_protocol);
if (fd < 0) {
tlog(TLOG_ERROR, "create socket failed.\n");
tlog(TLOG_ERROR, "create socket failed, family = %d, type = %d, proto = %d, %s\n",
gai->ai_family, gai->ai_socktype, gai->ai_protocol, strerror(errno));
goto errout;
}