Exemplo n.º 1
0
 public override bool IsIncluded(string address, string hostname)
 {
     if (subnetInfo.IsInRange(address))
     {
         if (Log.IsDebugEnabled())
         {
             Log.Debug("CIDRNMatcher low = " + subnetInfo.GetLowAddress() + ", high = " + subnetInfo
                       .GetHighAddress() + ", allowing client '" + address + "', '" + hostname + "'");
         }
         return(true);
     }
     if (Log.IsDebugEnabled())
     {
         Log.Debug("CIDRNMatcher low = " + subnetInfo.GetLowAddress() + ", high = " + subnetInfo
                   .GetHighAddress() + ", denying client '" + address + "', '" + hostname + "'");
     }
     return(false);
 }