diff --git a/internal/msggateway/n_ws_server.go b/internal/msggateway/n_ws_server.go index 4d425ac2a..ede5bea05 100644 --- a/internal/msggateway/n_ws_server.go +++ b/internal/msggateway/n_ws_server.go @@ -194,7 +194,7 @@ func (ws *WsServer) wsHandler(w http.ResponseWriter, r *http.Request) { return } platformID, exists = context.Query(PlatformID) - if !exists { + if !exists || utils.StringToInt(platformID) == 0 { httpError(context, errs.ErrConnArgsErr) return }