Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #341 do not erase all records labels #342

Conversation

masterzen
Copy link
Contributor

This just puts back the code as it was before until a correct and better fix is found :)

@@ -321,7 +321,7 @@ func NormalizeAndValidateConfig(config *models.DNSConfig) (errs []error) {
}

// Populate FQDN:
//rec.NameFQDN = dnsutil.AddOrigin(rec.GetLabel(), domain.Name)
rec.NameFQDN = dnsutil.AddOrigin(rec.GetLabel(), domain.Name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use rec.SetLabel() as it will set both .Name and .NameFQDN at the same time.

This is to prevent all labels to get erased by the empty LabelFQDN
during calls to `PunyCode`, until a better fix is found.
@masterzen masterzen force-pushed the bugfix/341-do-not-erase-all-records-labels branch from 0887a8e to db42e18 Compare March 22, 2018 09:46
@masterzen
Copy link
Contributor Author

@tlimoncelli I've updated the PR so that it uses SetLabel.

@tlimoncelli tlimoncelli merged commit 899100b into StackExchange:master Mar 22, 2018
rblenkinsopp pushed a commit to rblenkinsopp/dnscontrol that referenced this pull request Aug 21, 2020
…nge#342)

This is to prevent all labels to get erased by the empty LabelFQDN
during calls to `PunyCode`, until a better fix is found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants