bmsd/websocket.c

changeset 696
f4de55f587c1
parent 681
7ed5c380e21b
child 697
367ae7ff52f0
--- a/bmsd/websocket.c	Thu May 28 14:23:14 2020 +0200
+++ b/bmsd/websocket.c	Fri May 29 09:17:52 2020 +0200
@@ -210,10 +210,8 @@
     struct	lws_context_creation_info info;
     int		n = 0;
 
-    syslog(LOG_NOTICE, "Thread ws_loop started");
-
     memset(&info, 0, sizeof info); /* otherwise uninitialized garbage */
-    info.port = 8010;
+    info.port = Config.websocket_port;
     info.protocols = protocols;
     info.gid = -1;
     info.uid = -1;
@@ -225,6 +223,7 @@
     if (context == NULL) {
 	syslog(LOG_NOTICE, "libwebsocket_create_context() failed");
     }
+    syslog(LOG_NOTICE, "Websocket server port %d started", info.port);
 
     /*
      * Loop forever until external shutdown variable is set.

mercurial