mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-13 20:33:16 +00:00
Minor fixes
This commit is contained in:
parent
9cef2a0a8f
commit
7c30dde96b
|
@ -75,11 +75,13 @@ func proxyInfo(server *Server, detour adapter.Outbound) *badjson.JSONObject {
|
||||||
clashType = "Shadowsocks"
|
clashType = "Shadowsocks"
|
||||||
case C.TypeVMess:
|
case C.TypeVMess:
|
||||||
clashType = "Vmess"
|
clashType = "Vmess"
|
||||||
|
case C.TypeTrojan:
|
||||||
|
clashType = "Trojan"
|
||||||
case C.TypeSelector:
|
case C.TypeSelector:
|
||||||
clashType = "Selector"
|
clashType = "Selector"
|
||||||
isGroup = true
|
isGroup = true
|
||||||
default:
|
default:
|
||||||
clashType = "Unknown"
|
clashType = "Socks"
|
||||||
}
|
}
|
||||||
info.Put("type", clashType)
|
info.Put("type", clashType)
|
||||||
info.Put("name", detour.Tag())
|
info.Put("name", detour.Tag())
|
||||||
|
|
|
@ -61,10 +61,6 @@ func (s *StreamWrapper) Upstream() any {
|
||||||
return s.Stream
|
return s.Stream
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *StreamWrapper) WriterReplaceable() bool {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
func (s *StreamWrapper) Close() error {
|
func (s *StreamWrapper) Close() error {
|
||||||
s.CancelRead(0)
|
s.CancelRead(0)
|
||||||
s.Stream.Close()
|
s.Stream.Close()
|
||||||
|
|
Loading…
Reference in a new issue