diff -r cfe232710027 -r f4de55f587c1 bmsd/websocket.c --- 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.