From 150d004eede7b42e8ff7ef1b4b7e5180f936f32b Mon Sep 17 00:00:00 2001 From: Shtorm <108103062+shtorm-7@users.noreply.github.com> Date: Mon, 2 Mar 2026 19:48:06 +0300 Subject: [PATCH] Fix failover --- protocol/group/failover.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/protocol/group/failover.go b/protocol/group/failover.go index 55ff0082..c0362163 100644 --- a/protocol/group/failover.go +++ b/protocol/group/failover.go @@ -100,6 +100,9 @@ func (s *Failover) ListenPacket(ctx context.Context, destination M.Socksaddr) (n s.logger.ErrorContext(ctx, err) continue } + s.mtx.Lock() + defer s.mtx.Unlock() + s.lastUsedOutbound = outbound.Tag() return conn, nil } return nil, err