diff options
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) { |