1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00

plugins: openmetrics_export: graceful fail if unconfigured

This commit is contained in:
Andy Green 2022-02-21 05:29:44 +00:00
parent 8b6f2d5dba
commit 89f489f15c

View file

@ -971,7 +971,7 @@ callback_lws_openmetrics_prox_client(struct lws *wsi,
/* the proxy server uri */ /* the proxy server uri */
if (lws_pvo_get_str(in, "ws-server-uri", &cp)) { if (lws_pvo_get_str(in, "ws-server-uri", &cp) || !cp) {
lwsl_warn("%s: ws-server-uri pvo required\n", __func__); lwsl_warn("%s: ws-server-uri pvo required\n", __func__);
return 0; return 0;