From aa257565fb8db276c845dea2dee07eff52b979c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=9A=D1=80=D1=83?= =?UTF-8?q?=D0=B3=D0=BB=D0=B8=D1=86=D0=BA=D0=B8=D0=B9?= Date: Thu, 2 Oct 2025 03:47:30 +0600 Subject: [PATCH] #2 update --- server/index.mjs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/server/index.mjs b/server/index.mjs index 9a3efec..da78488 100644 --- a/server/index.mjs +++ b/server/index.mjs @@ -55,9 +55,18 @@ io.on("connection", (socket) => { socket.on("createTransport", async (cb) => { try { const transport = await router.createWebRtcTransport({ - listenIps: [{ ip: "0.0.0.0", announcedIp: "91.144.171.182" }], + listenInfos: [ + { + protocol: 'udp', + ip: "0.0.0.0", + announcedIp: "91.144.171.182", + portRange: { + min: 40000, + max: 40100 + } + } + ], enableUdp: true, - enableTcp: true, preferUdp: true, });