mirror of
https://github.com/osmarks/ngircd.git
synced 2025-03-04 16:38:09 +00:00
WEBIRC: Don't respect hostname when DNS is disabled
When DNS lookups are disabled, don't set the hostname received by the WEBIRC command, but use the IP address instead. Reported by Toni Spets <toni.spets@iki.fi>, thanks! Closes bug #167. (cherry picked from commit 1a628fff51fcfddde391e6c0f27686835e1b6d2e)
This commit is contained in:
parent
74db76b792
commit
d009df909b
@ -613,7 +613,10 @@ IRC_WEBIRC(CLIENT *Client, REQUEST *Req)
|
|||||||
|
|
||||||
Client_SetUser(Client, Req->argv[1], true);
|
Client_SetUser(Client, Req->argv[1], true);
|
||||||
Client_SetOrigUser(Client, Req->argv[1]);
|
Client_SetOrigUser(Client, Req->argv[1]);
|
||||||
Client_SetHostname(Client, Req->argv[2]);
|
if (Conf_DNS)
|
||||||
|
Client_SetHostname(Client, Req->argv[2]);
|
||||||
|
else
|
||||||
|
Client_SetHostname(Client, Req->argv[3]);
|
||||||
Client_SetIPAText(Client, Req->argv[3]);
|
Client_SetIPAText(Client, Req->argv[3]);
|
||||||
|
|
||||||
return CONNECTED;
|
return CONNECTED;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user