d562fbbc by Lorenzo Mangani Committed by GitHub

Update server.js

1 parent c2048d7c
......@@ -50,7 +50,7 @@ server.on("upgrade", async function(request, socket, head) {
gun.gun = new Gun({
peers: [], // should we use self as peer?
localStorage: false,
file: false, // "tmp/" + pathname,
file: false,
radisk: false,
multicast: false,
ws: { noServer: true, path: pathname, web: gun.server },
......@@ -66,6 +66,7 @@ server.on("upgrade", async function(request, socket, head) {
gun.server.emit("connection", ws, request);
});
} else {
if (debug) console.log("destroying socket", pathname);
socket.destroy();
}
});
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!