mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 04:30:08 +00:00
update xray v25.12.2 hysteria2 v2.6.4
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
||||
"github.com/InazumaV/V2bX/common/format"
|
||||
"github.com/InazumaV/V2bX/limiter"
|
||||
"github.com/apernet/hysteria/core/v2/server"
|
||||
quic "github.com/apernet/quic-go"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
@@ -20,10 +19,10 @@ type HookServer struct {
|
||||
ReportMinTrafficBytes int64
|
||||
}
|
||||
|
||||
func (h *HookServer) TraceStream(stream quic.Stream, stats *server.StreamStats) {
|
||||
func (h *HookServer) TraceStream(stream server.HyStream, stats *server.StreamStats) {
|
||||
}
|
||||
|
||||
func (h *HookServer) UntraceStream(stream quic.Stream) {
|
||||
func (h *HookServer) UntraceStream(stream server.HyStream) {
|
||||
}
|
||||
|
||||
func (h *HookServer) LogTraffic(id string, tx, rx uint64) (ok bool) {
|
||||
|
||||
@@ -19,7 +19,6 @@ import (
|
||||
"github.com/xtls/xray-core/features/inbound"
|
||||
"github.com/xtls/xray-core/features/outbound"
|
||||
"github.com/xtls/xray-core/features/routing"
|
||||
statsFeature "github.com/xtls/xray-core/features/stats"
|
||||
coreConf "github.com/xtls/xray-core/infra/conf"
|
||||
)
|
||||
|
||||
@@ -35,7 +34,6 @@ type Xray struct {
|
||||
Server *core.Instance
|
||||
ihm inbound.Manager
|
||||
ohm outbound.Manager
|
||||
shm statsFeature.Manager
|
||||
dispatcher *dispatcher.DefaultDispatcher
|
||||
users *UserMap
|
||||
nodeReportMinTrafficBytes map[string]int64
|
||||
@@ -188,7 +186,6 @@ func (c *Xray) Start() error {
|
||||
if err := c.Server.Start(); err != nil {
|
||||
return err
|
||||
}
|
||||
c.shm = c.Server.GetFeature(statsFeature.ManagerType()).(statsFeature.Manager)
|
||||
c.ihm = c.Server.GetFeature(inbound.ManagerType()).(inbound.Manager)
|
||||
c.ohm = c.Server.GetFeature(outbound.ManagerType()).(outbound.Manager)
|
||||
c.dispatcher = c.Server.GetFeature(routing.DispatcherType()).(*dispatcher.DefaultDispatcher)
|
||||
@@ -201,7 +198,6 @@ func (c *Xray) Close() error {
|
||||
defer c.access.Unlock()
|
||||
c.ihm = nil
|
||||
c.ohm = nil
|
||||
c.shm = nil
|
||||
c.dispatcher = nil
|
||||
err := c.Server.Close()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user