Skip to content

Commit

Permalink
ignore relabeling to json
Browse files Browse the repository at this point in the history
  • Loading branch information
dmachard committed Mar 10, 2024
1 parent 37f779a commit 013ebbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dnsutils/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ type DNSMessage struct {
MachineLearning *TransformML `json:"ml,omitempty"`
Filtering *TransformFiltering `json:"filtering,omitempty"`
ATags *TransformATags `json:"atags,omitempty"`
RelabelingRemove []TransformRelabeling
RelabelingRename []TransformRelabeling
RelabelingRemove []TransformRelabeling `json:"-"`
RelabelingRename []TransformRelabeling `json:"-"`
}

func (dm *DNSMessage) Init() {
Expand Down
2 changes: 1 addition & 1 deletion dnsutils/message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func TestDnsMessage_Json_Reference(t *testing.T) {
}

if !reflect.DeepEqual(dmMap, refMap) {
t.Errorf("json format different from reference")
t.Errorf("json format different from reference %v", dmMap)
}
}

Expand Down

0 comments on commit 013ebbe

Please sign in to comment.