aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2017-11-13 16:08:06 +0000
committerGravatar Miek Gieben <miek@miek.nl> 2017-11-13 16:08:06 +0000
commit42504332ae9a3cef2b01d7ead082ba3b36582992 (patch)
treeb16b284e6eff6b5703fede9f2966311f8fcd323a
parent4cedc8f902a828b15ed1f5c43d27b6844b88e21a (diff)
downloadcoredns-42504332ae9a3cef2b01d7ead082ba3b36582992.tar.gz
coredns-42504332ae9a3cef2b01d7ead082ba3b36582992.tar.zst
coredns-42504332ae9a3cef2b01d7ead082ba3b36582992.zip
plugin/rewrite: lowercase error
super small cleanup; smaller case return errors.
-rw-r--r--plugin/rewrite/edns0.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/rewrite/edns0.go b/plugin/rewrite/edns0.go
index 65ce3b7f6..19533d721 100644
--- a/plugin/rewrite/edns0.go
+++ b/plugin/rewrite/edns0.go
@@ -194,7 +194,7 @@ func (rule *edns0VariableRule) ipToWire(family int, ipAddr string) ([]byte, erro
case 2:
return net.ParseIP(ipAddr).To16(), nil
}
- return nil, fmt.Errorf("Invalid IP address family (i.e. version) %d", family)
+ return nil, fmt.Errorf("invalid IP address family (i.e. version) %d", family)
}
// uint16ToWire writes unit16 to wire/binary format
@@ -266,7 +266,7 @@ func (rule *edns0VariableRule) ruleData(w dns.ResponseWriter, r *dns.Msg) ([]byt
return rule.portToWire(port)
}
- return nil, fmt.Errorf("Unable to extract data for variable %s", rule.variable)
+ return nil, fmt.Errorf("unable to extract data for variable %s", rule.variable)
}
// Rewrite will alter the request EDNS0 local options with specified variables