mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-23 01:23:14 +08:00
chore: expose udp field to proxies API (#1441)
This commit is contained in:
parent
045edc188c
commit
bcfc15e398
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user