reid %!s(int64=2) %!d(string=hai) anos
pai
achega
89f27dfbe0
Modificáronse 1 ficheiros con 0 adicións e 3 borrados
  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))