updade from Atlas repo
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
from curio import TaskGroup
|
||||
import curio.socket as socket
|
||||
from collections.abc import Iterable, AsyncIterator
|
||||
from typing import NamedTuple
|
||||
|
||||
from curio import TaskGroup
|
||||
import curio.socket as socket
|
||||
|
||||
|
||||
class Result(NamedTuple):
|
||||
domain: str
|
||||
found: bool
|
||||
|
||||
|
||||
async def probe(domain: str) -> Result:
|
||||
async def probe(domain: str) -> Result:
|
||||
try:
|
||||
await socket.getaddrinfo(domain, None)
|
||||
except socket.gaierror:
|
||||
|
||||
Reference in New Issue
Block a user