mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01:00
authd: mention rDNS in found your hostname message
This commit is contained in:
parent
bdddd9ba83
commit
d475622639
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue