|
@@ -191,6 +191,7 @@ func loginHandler(conn *websocket.Conn, msg []byte, payload structs.WsPayload) e
|
|
|
|
|
|
|
|
// broadcast the unauth payload
|
|
// broadcast the unauth payload
|
|
|
func unauthHandler(conn *websocket.Conn, r *http.Request) {
|
|
func unauthHandler(conn *websocket.Conn, r *http.Request) {
|
|
|
|
|
+ config.Logger.Info("Sending unauth broadcast")
|
|
|
blob := structs.UnauthBroadcast{
|
|
blob := structs.UnauthBroadcast{
|
|
|
Type: "structure",
|
|
Type: "structure",
|
|
|
AuthLevel: "unauthorized",
|
|
AuthLevel: "unauthorized",
|
|
@@ -207,6 +208,7 @@ func unauthHandler(conn *websocket.Conn, r *http.Request) {
|
|
|
if err := conn.WriteMessage(websocket.TextMessage, resp); err != nil {
|
|
if err := conn.WriteMessage(websocket.TextMessage, resp); err != nil {
|
|
|
config.Logger.Error(fmt.Sprintf("Error writing response: %v", err))
|
|
config.Logger.Error(fmt.Sprintf("Error writing response: %v", err))
|
|
|
}
|
|
}
|
|
|
|
|
+ return
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// client send:
|
|
// client send:
|