#2 update
This commit is contained in:
parent
fac2870604
commit
aa257565fb
@ -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,
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user