# HG changeset patch
# User Edouard Tisserant
# Date 1616665704 -3600
# Node ID 75cb73b4a606b9b5abc2eb410b00b809ad155d11
# Parent  1582753e409bf474a92d06352869da308a9ce7cf
SVGHMI: stop serving HMI open wide on all interfaces. That was a security hole. It is user/developer responsibity to forward connection with for exemple stunnel and make it securely accessible from LAN.

diff -r 1582753e409b -r 75cb73b4a606 svghmi/svghmi_server.py
--- a/svghmi/svghmi_server.py	Thu Mar 25 10:13:12 2021 +0100
+++ b/svghmi/svghmi_server.py	Thu Mar 25 10:48:24 2021 +0100
@@ -173,7 +173,7 @@
     svghmi_root = Resource()
     svghmi_root.putChild("ws", WebSocketResource(HMIWebSocketServerFactory()))
 
-    svghmi_listener = reactor.listenTCP(8008, Site(svghmi_root))
+    svghmi_listener = reactor.listenTCP(8008, Site(svghmi_root), interface='localhost')
 
     # start a thread that call the C part of SVGHMI
     svghmi_send_thread = Thread(target=SendThreadProc, name="SVGHMI Send")