Skip to content

Commit

Permalink
Chore: add alive for proxy api
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamacro committed Jun 16, 2023
1 parent 9177645 commit 31fe77e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions adapter/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 31fe77e

Please sign in to comment.