diff --git a/experimental/clashapi/proxies.go b/experimental/clashapi/proxies.go index ad2b3efa..b32e0cff 100644 --- a/experimental/clashapi/proxies.go +++ b/experimental/clashapi/proxies.go @@ -75,11 +75,13 @@ func proxyInfo(server *Server, detour adapter.Outbound) *badjson.JSONObject { clashType = "Shadowsocks" case C.TypeVMess: clashType = "Vmess" + case C.TypeTrojan: + clashType = "Trojan" case C.TypeSelector: clashType = "Selector" isGroup = true default: - clashType = "Unknown" + clashType = "Socks" } info.Put("type", clashType) info.Put("name", detour.Tag()) diff --git a/transport/hysteria/wrap.go b/transport/hysteria/wrap.go index f1155c4d..8d2a63c8 100644 --- a/transport/hysteria/wrap.go +++ b/transport/hysteria/wrap.go @@ -61,10 +61,6 @@ func (s *StreamWrapper) Upstream() any { return s.Stream } -func (s *StreamWrapper) WriterReplaceable() bool { - return true -} - func (s *StreamWrapper) Close() error { s.CancelRead(0) s.Stream.Close()