Skip to content

Commit

Permalink
Testing rust, c++ vs python3.12 BUILD Bob Build (36)
Browse files Browse the repository at this point in the history
  • Loading branch information
spirillen committed Jan 18, 2025
1 parent 128bc4e commit 8c868e5
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tools/sort_lists_project/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,6 @@ use reqwest::blocking::Client;
use reqwest::Proxy;
use webbrowser;

import dns.resolver

def dns_lookup(domain, resolver_address='9.9.9.10'):
resolver = dns.resolver.Resolver()
resolver.nameservers = [resolver_address]
try:
resolver.resolve(domain)
return True
except (dns.resolver.NXDOMAIN, dns.resolver.Timeout, dns.exception.DNSException) as e:
print(f"DNS lookup error for domain {domain}: {e}")
return False

fn find_files_by_name(directory: &str, filenames: &[&str]) -> Vec<String> {
let mut matches = Vec::new();
for entry in walkdir::WalkDir::new(directory) {
Expand Down

0 comments on commit 8c868e5

Please sign in to comment.