1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +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 d7b912c539
commit 155b1c83b5

View file

@ -971,7 +971,7 @@ callback_lws_openmetrics_prox_client(struct lws *wsi,
/* 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__);
return 0;