From 1b5987bebe43c0c6c396e431f5385d9b0a88b3eb Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 25 Apr 2007 00:36:23 +0000 Subject: Use segments of 8 in length not ten, reducing the length of a cloaked ipv6 host by 12 chars (2*6) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6834 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_cloaking.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp index 19aac36aa..cb77177ed 100644 --- a/src/modules/m_cloaking.cpp +++ b/src/modules/m_cloaking.cpp @@ -228,7 +228,7 @@ class CloakUser : public ModeHandler { /* Send the Hash module a different hex table for each octet group's Hash sum */ HashHexRequest(Sender, HashProvider, xtab[(key1+rounds) % 4]).Send(); - hashies.push_back(std::string(HashSumRequest(Sender, HashProvider, item).Send()).substr(0,10)); + hashies.push_back(std::string(HashSumRequest(Sender, HashProvider, item).Send()).substr(0,8)); item = ""; } rounds++; @@ -237,7 +237,7 @@ class CloakUser : public ModeHandler { /* Send the Hash module a different hex table for each octet group's Hash sum */ HashHexRequest(Sender, HashProvider, xtab[(key1+rounds) % 4]).Send(); - hashies.push_back(std::string(HashSumRequest(Sender, HashProvider, item).Send()).substr(0,10)); + hashies.push_back(std::string(HashSumRequest(Sender, HashProvider, item).Send()).substr(0,8)); item = ""; } /* Stick them all together */ -- cgit v1.2.3