[Libwebsockets] Next lws release coming up

Per Bothner per at bothner.com
Fri Apr 27 01:47:09 CEST 2018


Well, I have a fix.  Don't know if it's the right fix.

diff --git a/lib/roles/http/server/server.c b/lib/roles/http/server/server.c
index 666f061d..cef3e2a4 100644
--- a/lib/roles/http/server/server.c
+++ b/lib/roles/http/server/server.c
@@ -271,6 +271,7 @@ done_list:
  			lwsl_info(" Listening on port %d\n", vhost->listen_port);
          }
  
+        info->port = vhost->listen_port;
  	return 0;
  
  bail:

I.e. it seems some later logic looks for the port in the info port field,
rather than the vhost listen_port field. Haven't tried to track down if that is
libwebsockets or domterm - waiting for your feedback first.
-- 
	--Per Bothner
per at bothner.com   http://per.bothner.com/



More information about the Libwebsockets mailing list