diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-06-09 19:12:17 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-06-09 19:12:17 +0200 |
commit | 4af6faf23308d37d1258a015ec5ad5095fc96eea (patch) | |
tree | da3811d7f6078ac7bd23380fc0e30a93d5c1c9fb /src | |
parent | 8f4466f197b7dcaa49150a01022e02fc855398ba (diff) |
Make --with-debug work again, and fix deprecated libwebsockets call.
Diffstat (limited to 'src')
-rw-r--r-- | src/muniacli.cc | 16 |
1 files changed, 12 insertions, 4 deletions
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) { |