1
0

Chore: add alive for proxy api

This commit is contained in:
Dreamacro 2023-06-16 21:05:32 +08:00
parent 9177645a89
commit 31fe77ee69

View File

@ -94,6 +94,7 @@ func (p *Proxy) MarshalJSON() ([]byte, error) {
mapping := map[string]any{}
json.Unmarshal(inner, &mapping)
mapping["history"] = p.DelayHistory()
mapping["alive"] = p.Alive()
mapping["name"] = p.Name()
mapping["udp"] = p.SupportUDP()
return json.Marshal(mapping)