Fix failover

This commit is contained in:
Shtorm
2026-03-02 19:48:06 +03:00
parent be457896dd
commit 150d004eed

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