mirror of https://github.com/bra1n/townsquare.git
added another domain to server whitelist
This commit is contained in:
parent
6ab0780803
commit
ef42239d2c
|
@ -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() {}
|
||||
|
|
Loading…
Reference in New Issue