Chore: Something update from clash (#639)

Chore: add alive for proxy api
Improve: alloc using make if alloc size > 65536
This commit is contained in:
タイムライン
2023-06-30 17:36:43 +08:00
committed by GitHub
parent 8e16738465
commit 57db8dfe23
3 changed files with 21 additions and 11 deletions

View File

@ -176,6 +176,7 @@ func (p *Proxy) MarshalJSON() ([]byte, error) {
_ = json.Unmarshal(inner, &mapping)
mapping["history"] = p.DelayHistory()
mapping["extra"] = p.ExtraDelayHistory()
mapping["alive"] = p.Alive()
mapping["name"] = p.Name()
mapping["udp"] = p.SupportUDP()
mapping["xudp"] = p.SupportXUDP()