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

This commit is contained in:
Fndroid 2021-06-10 15:08:33 +08:00 committed by GitHub
parent 045edc188c
commit bcfc15e398
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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