remove all whitespace from ip addresses

This commit is contained in:
David Kennedy 2023-10-30 12:37:37 -04:00
parent 00f5c8fc81
commit f928bc4da4
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -298,7 +298,7 @@ class DomainNameserversView(DomainFormBaseView):
# Remove any leading or trailing whitespace from each IP in the list
# this will return [] if no ips have been entered, which is taken
# into account in the model in checkHostIPCombo
ip_list = [ip.strip() for ip in ip_list]
ip_list = [ip.replace(" ", "") for ip in ip_list]
as_tuple = (
form.cleaned_data["server"],