소스 검색

auth work

reid 2 년 전
부모
커밋
89f27dfbe0
1개의 변경된 파일0개의 추가작업 그리고 3개의 파일을 삭제
  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))