Merge pull request #1153 from jterry75/max_search_error
Update parseDNSOptions maxDNSSearches in error message
This commit is contained in:
@@ -500,7 +500,7 @@ func parseDNSOptions(servers, searches, options []string) (string, error) {
|
|||||||
resolvContent := ""
|
resolvContent := ""
|
||||||
|
|
||||||
if len(searches) > maxDNSSearches {
|
if len(searches) > maxDNSSearches {
|
||||||
return "", errors.New("DNSOption.Searches has more than 6 domains")
|
return "", errors.Errorf("DNSOption.Searches has more than %d domains", maxDNSSearches)
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(searches) > 0 {
|
if len(searches) > 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user