mirror of
https://github.com/znc/znc.git
synced 2026-05-08 22:34:45 +02:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user