diff options
Diffstat (limited to '')
| -rw-r--r-- | webmentions_ssg/forms/validators.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webmentions_ssg/forms/validators.py b/webmentions_ssg/forms/validators.py index 36f36ce..c1f1c97 100644 --- a/webmentions_ssg/forms/validators.py +++ b/webmentions_ssg/forms/validators.py @@ -11,7 +11,7 @@ from flask import current_app from wtforms import Field, ValidationError from wtforms.form import BaseForm -from ..url_security import AddressResolutionError, is_public_url +from ..url_security import AddressResolutionError, is_public_address, is_public_url class URLMaxBytes: @@ -174,5 +174,5 @@ class PublicIPLiteral: except ValueError: return # Named hosts are resolved only during the background fetch. - if not address.is_global: + if not is_public_address(address): raise ValidationError(field.gettext("URL must use a public address.")) |
