34c50db8 by Jabis Sevón

roomname not pathname

1 parent 4bd54afd
...@@ -75,7 +75,7 @@ server.on("upgrade", async function(request, socket, head) { ...@@ -75,7 +75,7 @@ server.on("upgrade", async function(request, socket, head) {
75 }) 75 })
76 })*/ 76 })*/
77 let qs = ["sig="+encodeURIComponent((sig ? sig :'')),"creator="+encodeURIComponent((creator ? creator : ''))].join("&"); 77 let qs = ["sig="+encodeURIComponent((sig ? sig :'')),"creator="+encodeURIComponent((creator ? creator : ''))].join("&");
78 let relaypath = pathname+'?'+qs; 78 let relaypath = roomname+'?'+qs;
79 let peers = relaypeers.split(',').map(function(p){ return p+relaypath; }); 79 let peers = relaypeers.split(',').map(function(p){ return p+relaypath; });
80 if(debug) console.log("peers",peers); 80 if(debug) console.log("peers",peers);
81 const g = gun.gun = Gun({ 81 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!