aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg/url_security.py
diff options
context:
space:
mode:
Diffstat (limited to 'webmentions_ssg/url_security.py')
-rw-r--r--webmentions_ssg/url_security.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/webmentions_ssg/url_security.py b/webmentions_ssg/url_security.py
index f943c7e..4e7940b 100644
--- a/webmentions_ssg/url_security.py
+++ b/webmentions_ssg/url_security.py
@@ -19,7 +19,9 @@ class UnsafeAddressError(ValueError):
"""A hostname or IP literal identifies a non-public network address."""
-def public_addresses(hostname: str, *, lifetime: float | None = None) -> tuple[str, ...]:
+def public_addresses(
+ hostname: str, *, lifetime: float | None = None
+) -> tuple[str, ...]:
"""Resolve *once* and return only checked, globally routable IP addresses.
A DNS name with a mixture of public and private answers is rejected in its