aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-11-15 15:17:37 +0800
committerAaron LI <aaronly.me@outlook.com>2016-11-15 15:17:37 +0800
commit6f34464b51e7c3fc2ad6e6f146eb071cac4a75a7 (patch)
tree24337de8c83f50bc178d1450eb4c3766520b67d7 /fg21sim/webui
parenta9b8b7fd3a70da9e32dee70fba45723f986f6115 (diff)
downloadfg21sim-6f34464b51e7c3fc2ad6e6f146eb071cac4a75a7.tar.bz2
bin/fg21sim-webui: Add options "host" to allow localhost access only
Diffstat (limited to 'fg21sim/webui')
-rw-r--r--fg21sim/webui/websocket.py6
1 files changed, 3 insertions, 3 deletions
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 +