From a98b0341f31c6beceec4bd31846edbf749a8b6a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Thu, 14 Nov 2024 13:00:20 +0800 Subject: [PATCH] Fix logical dns rule --- option/rule_dns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }