authd: mention rDNS in found your hostname message

This commit is contained in:
William Pitcock 2016-04-05 00:56:43 -05:00
parent bdddd9ba83
commit d475622639

View file

@ -35,7 +35,6 @@ struct user_query
static const char *messages[] = static const char *messages[] =
{ {
"*** Looking up your hostname...", "*** Looking up your hostname...",
"*** Found your hostname",
"*** Couldn't look up your hostname", "*** Couldn't look up your hostname",
"*** Your hostname is too long, ignoring hostname", "*** Your hostname is too long, ignoring hostname",
}; };
@ -43,7 +42,6 @@ static const char *messages[] =
typedef enum typedef enum
{ {
REPORT_LOOKUP, REPORT_LOOKUP,
REPORT_FOUND,
REPORT_FAIL, REPORT_FAIL,
REPORT_TOOLONG, REPORT_TOOLONG,
} dns_message; } dns_message;
@ -99,7 +97,7 @@ client_success(struct auth_client *auth)
lrb_assert(query != NULL); lrb_assert(query != NULL);
notice_client(auth->cid, messages[REPORT_FOUND]); notice_client(auth->cid, "*** Found your hostname: %s", auth->hostname);
cancel_query(query->query); cancel_query(query->query);
rb_free(query); rb_free(query);