]> jfr.im git - irc/freenode/syn.git/commit
get_random_host_part: hash uid!user@host, rather than just uid
authorJanik Kleinhoff <redacted>
Mon, 4 Mar 2019 13:08:42 +0000 (13:08 +0000)
committerJanik Kleinhoff <redacted>
Mon, 4 Mar 2019 13:08:42 +0000 (13:08 +0000)
commit71842e713e7fbc952d180ed4ba74dfcb6e7d7223
tree075a192b9f54196005680bd3bb80139c256fbf2f
parent125b3879cc473715593f3f5a1a51193470275b98
get_random_host_part: hash uid!user@host, rather than just uid

This should significantly reduce the chance for the same x-part to be
reused after an ircd restart (unless, of course, the user is the same).

Alternatively, we could hash just user@host, but then it would no longer
be "random"-type cloaking, plus there's already ident-type cloaking.
util.c