diff options
| author | michi <michi+ngircd@dataswamp.org> | 2020-04-14 16:58:04 +0200 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2020-04-20 00:20:46 +0200 |
| commit | 13b8324c4a6f46e18e58883630808bc8c4ed9e80 (patch) | |
| tree | 7032f08bb8877925172205772b9b43c09d446d50 | |
| parent | f27827d7937375b5348107ca7427abf74c9eff3d (diff) | |
| download | ngircd-13b8324c4a6f46e18e58883630808bc8c4ed9e80.tar.gz ngircd-13b8324c4a6f46e18e58883630808bc8c4ed9e80.zip | |
Fix hostmask cloaking bug for IPv6 too
| -rw-r--r-- | src/ngircd/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngircd/client.c b/src/ngircd/client.c index a453312c..118431b1 100644 --- a/src/ngircd/client.c +++ b/src/ngircd/client.c @@ -338,8 +338,8 @@ Client_SetHostname( CLIENT *Client, const char *Hostname ) assert(Hostname != NULL); /* Only cloak the hostmask if it has not yet been cloaked (the period - * indicates it's still an IP address). */ - if (Conf_CloakHost[0] && strchr(Client->host, '.')) { + * or colon indicates it's still an IP address). */ + if (Conf_CloakHost[0] && strpbrk(Client->host, ".:")) { char cloak[GETID_LEN]; strlcpy(cloak, Hostname, GETID_LEN); |