chore: expose udp field to proxies API (#1441)

This commit is contained in:
gVisor bot 2021-06-10 15:08:33 +08:00
parent 542325aae4
commit 45f439c77f

View File

@ -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)
}