mirror of
https://github.com/FutaGuard/LowTechFilter.git
synced 2025-08-21 12:06:46 +08:00
Compare commits
4 Commits
968e36f35b
...
a16d176f5b
Author | SHA1 | Date | |
---|---|---|---|
|
a16d176f5b | ||
|
2cdf44f54b | ||
|
9776aa10d5 | ||
|
cf57b72e20 |
@ -9,7 +9,7 @@ httpx==0.27.0
|
||||
idna==3.7
|
||||
lxml==5.2.1
|
||||
python-dateutil==2.9.0.post0
|
||||
requests==2.28.1
|
||||
requests==2.32.0
|
||||
ruff==0.3.5
|
||||
six==1.16.0
|
||||
sniffio==1.3.1
|
||||
|
@ -20,7 +20,9 @@ def exclude_list(domain: str) -> bool:
|
||||
|
||||
|
||||
def is_pure_ip(domain: str) -> bool:
|
||||
return True if re.match(IP_PATTERN, domain) else False
|
||||
if isinstance(domain, str):
|
||||
return True if re.match(IP_PATTERN, domain) else False
|
||||
return True
|
||||
|
||||
|
||||
def main():
|
||||
|
Loading…
x
Reference in New Issue
Block a user