From b501160efc3beaf28eb22ac47ccb6c5c6a90bf6c Mon Sep 17 00:00:00 2001 From: mountain Date: Tue, 1 Aug 2023 14:17:47 +0900 Subject: [PATCH] =?UTF-8?q?nosession=EC=9D=84=20noauth=EB=A1=9C=20?= =?UTF-8?q?=EA=B5=90=EC=B2=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wshandler/wshandler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wshandler/wshandler.go b/wshandler/wshandler.go index 0f0e9d1..c552e37 100644 --- a/wshandler/wshandler.go +++ b/wshandler/wshandler.go @@ -23,7 +23,7 @@ import ( "github.com/gorilla/websocket" ) -var noSessionFlag = flagx.Bool("nosession", false, "nosession=[true|false]") +var noAuthFlag = flagx.Bool("noauth", false, "") type wsconn struct { *websocket.Conn @@ -260,7 +260,7 @@ func (ws *WebsocketHandler) RegisterHandlers(serveMux *http.ServeMux, prefix str region = "" } url := gocommon.MakeHttpHandlerPattern(prefix, region, "ws") - if *noSessionFlag { + if *noAuthFlag { serveMux.HandleFunc(url, sh.upgrade_nosession) } else { serveMux.HandleFunc(url, sh.upgrade)