34c50db8 by Jabis Sevón

roomname not pathname

1 parent 4bd54afd
......@@ -75,7 +75,7 @@ server.on("upgrade", async function(request, socket, head) {
})
})*/
let qs = ["sig="+encodeURIComponent((sig ? sig :'')),"creator="+encodeURIComponent((creator ? creator : ''))].join("&");
let relaypath = pathname+'?'+qs;
let relaypath = roomname+'?'+qs;
let peers = relaypeers.split(',').map(function(p){ return p+relaypath; });
if(debug) console.log("peers",peers);
const g = gun.gun = Gun({
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!