From bcfc15e3980aa227a7dbdf21f4e299df76c57df2 Mon Sep 17 00:00:00 2001 From: Fndroid Date: Thu, 10 Jun 2021 15:08:33 +0800 Subject: [PATCH] chore: expose udp field to proxies API (#1441) --- adapter/adapter.go | 1 + 1 file changed, 1 insertion(+) diff --git a/adapter/adapter.go b/adapter/adapter.go index f3503f04..787a45b1 100644 --- a/adapter/adapter.go +++ b/adapter/adapter.go @@ -82,6 +82,7 @@ func (p *Proxy) MarshalJSON() ([]byte, error) { json.Unmarshal(inner, &mapping) mapping["history"] = p.DelayHistory() mapping["name"] = p.Name() + mapping["udp"] = p.SupportUDP() return json.Marshal(mapping) }