Example #1
0
 private bool IsTor(EndPoint endPoint)
 {
     if (endPoint is IPEndPoint)
     {
         return(endPoint.AsOnionDNSEndpoint() != null);
     }
     if (endPoint is DnsEndPoint dns)
     {
         return(dns.Host.EndsWith(".onion", StringComparison.OrdinalIgnoreCase));
     }
     return(false);
 }