Преглед изворни кода

Fix #8785 - allow wildcard dns records

Added * to the DNSValidator regex to allow wildcard domains like *.example.com
fmlshai пре 3 година
родитељ
комит
f45e64c756
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      netbox/ipam/validators.py

+ 2 - 2
netbox/ipam/validators.py

@@ -24,7 +24,7 @@ class MinPrefixLengthValidator(BaseValidator):
 
 
 DNSValidator = RegexValidator(
-    regex='^[0-9A-Za-z._-]+$',
-    message='Only alphanumeric characters, hyphens, periods, and underscores are allowed in DNS names',
+    regex='^[0-9A-Za-z*._-]+$',
+    message='Only alphanumeric characters, asterisks, hyphens, periods, and underscores are allowed in DNS names',
     code='invalid'
 )