Browse Source

auth work

reid 2 năm trước cách đây
mục cha
commit
89f27dfbe0
1 tập tin đã thay đổi với 0 bổ sung3 xóa
  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))