Added debug output for the listeners IsHostAllowed check.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1815 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
silverleo
2010-03-08 16:51:00 +00:00
parent 467a5a570e
commit 0d42ded787
+3 -2
View File
@@ -179,8 +179,9 @@ public:
virtual ~CRealListener() {}
virtual bool ConnectionFrom(const CString& sHost, unsigned short uPort) {
DEBUG(GetSockName() << " == ConnectionFrom(" << sHost << ", " << uPort << ")");
return CZNC::Get().IsHostAllowed(sHost);
bool bHostAllowed = CZNC::Get().IsHostAllowed(sHost);
DEBUG(GetSockName() << " == ConnectionFrom(" << sHost << ", " << uPort << ") [" << (bHostAllowed ? "Allowed" : "Not allowed") << "]");
return bHostAllowed;
}
virtual Csock* GetSockObj(const CString& sHost, unsigned short uPort) {