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:
parent
d7b912c539
commit
155b1c83b5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue