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, });