From 4af6faf23308d37d1258a015ec5ad5095fc96eea Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 9 Jun 2020 19:12:17 +0200 Subject: Make --with-debug work again, and fix deprecated libwebsockets call. --- src/muniacli.cc | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/muniacli.cc b/src/muniacli.cc index d6dcc9d..34cb820 100644 --- a/src/muniacli.cc +++ b/src/muniacli.cc @@ -135,10 +135,18 @@ int client(const char *address, int port) if(wsi_node == nullptr) { - wsi_node = lws_client_connect(context, address, port, - 0, "/", address, address, - "lws-node-protocol", - ietf_version); + lws_client_connect_info info; + memset(&info, 0, sizeof(info)); + info.context = context; + info.address = address; + info.port = port; + info.ssl_connection = 0; + info.path = "/"; + info.host = address; + info.origin = address; + info.protocol = "lws-node-protocol"; + info.ietf_version_or_minus_one = ietf_version; + wsi_node = lws_client_connect_via_info(&info); if(wsi_node == nullptr) { -- cgit v1.2.3