added another domain to server whitelist

This commit is contained in:
Steffen 2020-07-19 20:40:40 +02:00
parent 6ab0780803
commit ef42239d2c
No known key found for this signature in database
GPG Key ID: 764D74E98267DFC6
1 changed files with 3 additions and 1 deletions

View File

@ -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() {}