From 45f439c77faa2b4feebe451e82dd1403a269ec39 Mon Sep 17 00:00:00 2001 From: gVisor bot 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) }