From 31fe77ee694d9be3a2db0be59189f18a4d601759 Mon Sep 17 00:00:00 2001 From: Dreamacro <8615343+Dreamacro@users.noreply.github.com> Date: Fri, 16 Jun 2023 21:05:32 +0800 Subject: [PATCH] Chore: add `alive` for proxy api --- adapter/adapter.go | 1 + 1 file changed, 1 insertion(+) diff --git a/adapter/adapter.go b/adapter/adapter.go index db54bbe..020fe91 100644 --- a/adapter/adapter.go +++ b/adapter/adapter.go @@ -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)