mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 18:49:03 -04:00
Rename the hmac-sha256-ip cloak engine to hmac-sha256-addr.
This engine cloaks the socket address which may not necessarily be an IP address.
This commit is contained in:
parent
72b39087b1
commit
b2807d5bb2
@ -564,7 +564,7 @@
|
|||||||
|
|
||||||
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
|
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
|
||||||
# HMAC-SHA256 cloak module: Adds the "hmac-sha256" (hostname or IP) and
|
# HMAC-SHA256 cloak module: Adds the "hmac-sha256" (hostname or IP) and
|
||||||
# "hmac-sha256-ip" (IP only) cloak methods. This is the recommended
|
# "hmac-sha256-addr" (IP only) cloak methods. This is the recommended
|
||||||
# cloak module for new networks.
|
# cloak module for new networks.
|
||||||
#
|
#
|
||||||
# IMPORTANT: If you are using this module you should also load the sha2
|
# IMPORTANT: If you are using this module you should also load the sha2
|
||||||
@ -619,7 +619,7 @@
|
|||||||
# pathparts="1"
|
# pathparts="1"
|
||||||
# psl="system">
|
# psl="system">
|
||||||
#
|
#
|
||||||
#<cloak method="hmac-sha256-ip"
|
#<cloak method="hmac-sha256-addr"
|
||||||
# key="changeme"
|
# key="changeme"
|
||||||
# class=""
|
# class=""
|
||||||
# prefix="MyNet"
|
# prefix="MyNet"
|
||||||
|
@ -337,14 +337,14 @@ class ModuleCloakSHA256 final
|
|||||||
: public Module
|
: public Module
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
SHA256Engine addrcloak;
|
||||||
SHA256Engine hostcloak;
|
SHA256Engine hostcloak;
|
||||||
SHA256Engine ipcloak;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ModuleCloakSHA256()
|
ModuleCloakSHA256()
|
||||||
: Module(VF_VENDOR, "Adds the hmac-sha256 and hmac-sha256-ip cloaking methods for use with the cloak module.")
|
: Module(VF_VENDOR, "Adds the hmac-sha256 and hmac-sha256-ip cloaking methods for use with the cloak module.")
|
||||||
|
, addrcloak(this, "hmac-sha256-addr", false)
|
||||||
, hostcloak(this, "hmac-sha256", true)
|
, hostcloak(this, "hmac-sha256", true)
|
||||||
, ipcloak(this, "hmac-sha256-ip", false)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user