From 2570855cd780e34893ad31d8d5ff2338a396005a Mon Sep 17 00:00:00 2001 From: yuhan6665 <1588741+yuhan6665@users.noreply.github.com> Date: Fri, 17 Nov 2023 20:10:46 -0500 Subject: [PATCH] Update v1.8.6 --- core/core.go | 2 +- proxy/wireguard/server.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/core/core.go b/core/core.go index dfcaac6d..d11fa273 100644 --- a/core/core.go +++ b/core/core.go @@ -21,7 +21,7 @@ import ( var ( Version_x byte = 1 Version_y byte = 8 - Version_z byte = 5 + Version_z byte = 6 ) var ( diff --git a/proxy/wireguard/server.go b/proxy/wireguard/server.go index 6cd2d7ad..bdb4e801 100644 --- a/proxy/wireguard/server.go +++ b/proxy/wireguard/server.go @@ -77,6 +77,10 @@ func (*Server) Network() []net.Network { // Process implements proxy.Inbound. func (s *Server) Process(ctx context.Context, network net.Network, conn stat.Connection, dispatcher routing.Dispatcher) error { + inbound := session.InboundFromContext(ctx) + inbound.Name = "wireguard" + inbound.SetCanSpliceCopy(3) + s.info = routingInfo{ ctx: core.ToBackgroundDetachedContext(ctx), dispatcher: dispatcher,