1
0
mirror of https://github.com/MetaCubeX/mihomo.git synced 2025-09-19 20:15:59 +08:00

chore: restful api displays more information
Some checks failed
Trigger CMFA Update / trigger-CMFA-update (push) Failing after 11s

This commit is contained in:
xishang0128
2024-11-21 22:50:54 +08:00
parent 462343531e
commit eb985b002e
16 changed files with 100 additions and 1 deletions

View File

@ -163,10 +163,14 @@ func (p *Proxy) MarshalJSON() ([]byte, error) {
mapping["alive"] = p.alive.Load()
mapping["name"] = p.Name()
mapping["udp"] = p.SupportUDP()
mapping["uot"] = p.SupportUOT()
mapping["xudp"] = p.SupportXUDP()
mapping["tfo"] = p.SupportTFO()
mapping["mptcp"] = p.SupportMPTCP()
mapping["smux"] = p.SupportSMUX()
mapping["interface"] = p.SupportInterface()
mapping["dialer-proxy"] = p.SupportDialerProxy()
mapping["routing-mark"] = p.SupportRoutingMark()
return json.Marshal(mapping)
}