From 6f34464b51e7c3fc2ad6e6f146eb071cac4a75a7 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 15 Nov 2016 15:17:37 +0800 Subject: bin/fg21sim-webui: Add options "host" to allow localhost access only --- fg21sim/webui/websocket.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fg21sim/webui') diff --git a/fg21sim/webui/websocket.py b/fg21sim/webui/websocket.py index 0e7f07f..00bda03 100644 --- a/fg21sim/webui/websocket.py +++ b/fg21sim/webui/websocket.py @@ -84,11 +84,11 @@ class FG21simWSHandler(tornado.websocket.WebSocketHandler): elif network.upper() == "ANY": # Any hosts are allowed allow = True - logger.error("WebSocket: %s: any hosts are allowed" % self.name) + logger.warning("WebSocket: %s: any hosts are allowed" % self.name) elif ip_in_network(ip, network): allow = True - logger.error("WebSocket: %s: " % self.name + - "client is in the allowed network: %s" % network) + logger.info("WebSocket: %s: " % self.name + + "client is in the allowed network: %s" % network) else: allow = False logger.error("WebSocket: %s: " % self.name + -- cgit v1.2.2