From bbf9cc9b7fffb7ef8092c8515104dcccbcee60c6 Mon Sep 17 00:00:00 2001 From: hemanthKa677 Date: Mon, 19 Jun 2023 15:46:06 +0530 Subject: [PATCH] Fixes usage of uppercase letters in FQDN for AAAA-Record --- object_manager_aaaa-record.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/object_manager_aaaa-record.go b/object_manager_aaaa-record.go index 4ee7d903..158b6c44 100644 --- a/object_manager_aaaa-record.go +++ b/object_manager_aaaa-record.go @@ -17,7 +17,7 @@ func (objMgr *ObjectManager) CreateAAAARecord( comment string, eas EA) (*RecordAAAA, error) { - cleanName := strings.ToLower(strings.TrimSpace(recordName)) + cleanName := strings.TrimSpace(recordName) if cleanName == "" || cleanName != recordName { return nil, fmt.Errorf( "'name' argument is expected to be non-empty and it must NOT contain leading/trailing spaces") @@ -107,7 +107,7 @@ func (objMgr *ObjectManager) UpdateAAAARecord( comment string, setEas EA) (*RecordAAAA, error) { - cleanName := strings.ToLower(strings.TrimSpace(recordName)) + cleanName := strings.TrimSpace(recordName) if cleanName == "" || cleanName != recordName { return nil, fmt.Errorf( "'name' argument is expected to be non-empty and it must NOT contain leading/trailing spaces")