fix[net]:修正一致性hash uid判断

This commit is contained in:
zaoaz
2023-03-22 16:02:12 +08:00
parent 703b0ce6eb
commit 546408bc2a
@@ -96,7 +96,7 @@ public class GatewayRouteHandler extends ServerRouteHandler {
} else {
// 使用用户的uid做一致性hash
var uid = session.getUid();
if (uid <= 0) {
if (uid > 0) {
forwardingPacket(packet, gatewayAttachment, uid);
return;
}