Fix format Listable[InterfaceType]

This commit is contained in:
世界
2024-11-16 12:18:16 +08:00
parent e1dd6614e0
commit e383cd0765
3 changed files with 4 additions and 4 deletions

View File

@@ -121,7 +121,7 @@ func (r DefaultDNSRule) MarshalJSON() ([]byte, error) {
}
func (r *DefaultDNSRule) UnmarshalJSONContext(ctx context.Context, data []byte) error {
err := json.Unmarshal(data, &r.RawDefaultDNSRule)
err := json.UnmarshalContext(ctx, data, &r.RawDefaultDNSRule)
if err != nil {
return err
}