瀏覽代碼

websocket: use literal module name for stats group

- prevent conflicts with global exports
Daniel-Constantin Mierla 1 年之前
父節點
當前提交
93609b53d7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/websocket/websocket.c

+ 1 - 1
src/modules/websocket/websocket.c

@@ -194,7 +194,7 @@ static int mod_init(void)
 		goto error;
 	}
 
-	if(register_module_stats(exports.name, stats) != 0) {
+	if(register_module_stats("websocket", stats) != 0) {
 		LM_ERR("registering core statistics\n");
 		goto error;
 	}