| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -63,6 +63,7 @@ func startChatServer() { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							if path.Ext(r.URL.Path) == ".m3u8" { | 
					 | 
					 | 
					 | 
							if path.Ext(r.URL.Path) == ".m3u8" { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								clientID := getClientIDFromRequest(r) | 
					 | 
					 | 
					 | 
								clientID := getClientIDFromRequest(r) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								stats.SetClientActive(clientID) | 
					 | 
					 | 
					 | 
								stats.SetClientActive(clientID) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
								disableCache(&w) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							} | 
					 | 
					 | 
					 | 
							} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						}) | 
					 | 
					 | 
					 | 
						}) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -77,6 +78,11 @@ func enableCors(w *http.ResponseWriter) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						(*w).Header().Set("Access-Control-Allow-Origin", "*") | 
					 | 
					 | 
					 | 
						(*w).Header().Set("Access-Control-Allow-Origin", "*") | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					} | 
					 | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					func disableCache(w *http.ResponseWriter) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
						(*w).Header().Set("Cache-Control", "no-cache, no-store, must-revalidate") | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
						(*w).Header().Set("Expires", "0") | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					func getStatus(w http.ResponseWriter, r *http.Request) { | 
					 | 
					 | 
					 | 
					func getStatus(w http.ResponseWriter, r *http.Request) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						enableCors(&w) | 
					 | 
					 | 
					 | 
						enableCors(&w) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |