Commit 42504332 authored by Miek Gieben's avatar Miek Gieben

plugin/rewrite: lowercase error

super small cleanup; smaller case return errors.
parent 4cedc8f9
...@@ -194,7 +194,7 @@ func (rule *edns0VariableRule) ipToWire(family int, ipAddr string) ([]byte, erro ...@@ -194,7 +194,7 @@ func (rule *edns0VariableRule) ipToWire(family int, ipAddr string) ([]byte, erro
case 2: case 2:
return net.ParseIP(ipAddr).To16(), nil 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 // uint16ToWire writes unit16 to wire/binary format
...@@ -266,7 +266,7 @@ func (rule *edns0VariableRule) ruleData(w dns.ResponseWriter, r *dns.Msg) ([]byt ...@@ -266,7 +266,7 @@ func (rule *edns0VariableRule) ruleData(w dns.ResponseWriter, r *dns.Msg) ([]byt
return rule.portToWire(port) 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 // Rewrite will alter the request EDNS0 local options with specified variables
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment