mirror of
				https://github.com/bra1n/townsquare.git
				synced 2025-10-21 16:55:12 +00:00 
			
		
		
		
	added another domain to server whitelist
This commit is contained in:
		
							parent
							
								
									6ab0780803
								
							
						
					
					
						commit
						ef42239d2c
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -9,7 +9,9 @@ const server = https.createServer({
 | 
				
			||||||
const wss = new WebSocket.Server({
 | 
					const wss = new WebSocket.Server({
 | 
				
			||||||
  ...(process.env.NODE_ENV === "development" ? { port: 8081 } : { server }),
 | 
					  ...(process.env.NODE_ENV === "development" ? { port: 8081 } : { server }),
 | 
				
			||||||
  verifyClient: info =>
 | 
					  verifyClient: info =>
 | 
				
			||||||
    !!info.origin.match(/^https?:\/\/(bra1n\.github\.io|localhost)/i)
 | 
					    !!info.origin.match(
 | 
				
			||||||
 | 
					      /^https?:\/\/(bra1n\.github\.io|localhost|eddbra1nprivatetownsquare\.xyz)/i
 | 
				
			||||||
 | 
					    )
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function noop() {}
 | 
					function noop() {}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue