From ef42239d2c7f3264e929eae5d1f9ee4a67dd564b Mon Sep 17 00:00:00 2001 From: Steffen Date: Sun, 19 Jul 2020 20:40:40 +0200 Subject: [PATCH] added another domain to server whitelist --- server/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/index.js b/server/index.js index 7c9cd4a..130b894 100644 --- a/server/index.js +++ b/server/index.js @@ -9,7 +9,9 @@ const server = https.createServer({ const wss = new WebSocket.Server({ ...(process.env.NODE_ENV === "development" ? { port: 8081 } : { server }), verifyClient: info => - !!info.origin.match(/^https?:\/\/(bra1n\.github\.io|localhost)/i) + !!info.origin.match( + /^https?:\/\/(bra1n\.github\.io|localhost|eddbra1nprivatetownsquare\.xyz)/i + ) }); function noop() {}