]> arthur.barton.de Git - ngircd-alex.git/commit
Implement user mode "x": hostname cloaking (closes: #102)
authorAlexander Barton <alex@barton.de>
Tue, 17 Aug 2010 19:05:06 +0000 (21:05 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 17 Aug 2010 19:05:06 +0000 (21:05 +0200)
commit2a4bf67aaceebd3567dcd0ac1db2b9027560f574
tree5f57a34d20067103a7ccea16f54df9dc5184ab43
parent575485eb82698a926d38634be2b3e4dce4a5dfd6
Implement user mode "x": hostname cloaking (closes: #102)

When a client has user mode "x" set, its real hostname is cloaked
by substituting it with the server name (as configured in ngircd.conf).

Restricted clients (user mode "r") aren't allowed to change mode "x".

Please note that hostname cloaking is only in effect in server-client
communication! The server still uses the real hostname for its own
logging and for all server-server communication -- therefore all servers
in the network must support user mode "x" to prevent older servers
from leaking the real hostname of a cloaked client!
src/ngircd/defines.h
src/ngircd/irc-mode.c