diff options
author | 2019-02-21 07:13:05 +0000 | |
---|---|---|
committer | 2019-02-21 07:13:05 +0000 | |
commit | 34f17b276aad25a1c5e3f2be3946a8c905a01eb9 (patch) | |
tree | 9191eb54cbef233cb52c2216c43a817f42f08ed8 | |
parent | 8691edd69dd7224e46ea4254da9ebb0cc8bb4e3b (diff) | |
download | coredns-34f17b276aad25a1c5e3f2be3946a8c905a01eb9.tar.gz coredns-34f17b276aad25a1c5e3f2be3946a8c905a01eb9.tar.zst coredns-34f17b276aad25a1c5e3f2be3946a8c905a01eb9.zip |
Fix typo: rrflags -> rflags (#2587)
Signed-off-by: Miek Gieben <miek@miek.nl>
-rw-r--r-- | plugin/pkg/replacer/replacer.go | 4 | ||||
-rw-r--r-- | plugin/pkg/replacer/replacer_test.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugin/pkg/replacer/replacer.go b/plugin/pkg/replacer/replacer.go index f72e1ec9c..3e2cbfcbd 100644 --- a/plugin/pkg/replacer/replacer.go +++ b/plugin/pkg/replacer/replacer.go @@ -38,7 +38,7 @@ var labels = []string{ "{rcode}", "{rsize}", "{duration}", - headerReplacer + "rrflags}", + headerReplacer + "rflags}", } // value returns the current value of label. @@ -89,7 +89,7 @@ func value(state request.Request, rr *dnstest.Recorder, label string) string { return EmptyValue } return strconv.FormatFloat(time.Since(rr.Start).Seconds(), 'f', -1, 64) + "s" - case headerReplacer + "rrflags}": + case headerReplacer + "rflags}": if rr != nil && rr.Msg != nil { return flagsToString(rr.Msg.MsgHdr) } diff --git a/plugin/pkg/replacer/replacer_test.go b/plugin/pkg/replacer/replacer_test.go index 8f86e91a5..13ba396b9 100644 --- a/plugin/pkg/replacer/replacer_test.go +++ b/plugin/pkg/replacer/replacer_test.go @@ -62,7 +62,7 @@ func TestLabels(t *testing.T) { "{rcode}": "NOERROR", "{rsize}": "29", "{duration}": "0", - headerReplacer + "rrflags}": "rd,ad,cd", + headerReplacer + "rflags}": "rd,ad,cd", } if len(expect) != len(labels) { t.Fatalf("Expect %d labels, got %d", len(expect), len(labels)) |