reid před 2 roky
rodič
revize
89f27dfbe0
1 změnil soubory, kde provedl 0 přidání a 3 odebrání
  1. 0 3
      ws/ws.go

+ 0 - 3
ws/ws.go

@@ -53,9 +53,6 @@ func WsHandler(w http.ResponseWriter, r *http.Request) {
 	// manage broadcasts and clients thru the broadcast package
 	// broadcast.RegisterClient(conn)
 	// defer broadcast.UnregisterClient(conn)
-	if !auth.WsAuthCheck(conn) {
-		unauthHandler(conn, r)
-	}
 	// keepalive for ws
 	conn.SetPongHandler(func(string) error {
 		conn.SetReadDeadline(time.Now().Add(60 * time.Second))