diff --git a/option/rule_dns.go b/option/rule_dns.go index 464d573a..c6ad2db9 100644 --- a/option/rule_dns.go +++ b/option/rule_dns.go @@ -146,7 +146,7 @@ type LogicalDNSRule struct { DNSRuleAction } -func (r *LogicalDNSRule) MarshalJSON() ([]byte, error) { +func (r LogicalDNSRule) MarshalJSON() ([]byte, error) { return badjson.MarshallObjects(r.RawLogicalDNSRule, r.DNSRuleAction) }