Fix failover

This commit is contained in:
Sergei Maklagin
2026-03-02 19:48:06 +03:00
parent 290dbed7b8
commit 35bc351564

View File

@@ -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