aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--voctocore/lib/controlserver.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/voctocore/lib/controlserver.py b/voctocore/lib/controlserver.py
index 90d4e7c..b0fe3d5 100644
--- a/voctocore/lib/controlserver.py
+++ b/voctocore/lib/controlserver.py
@@ -89,6 +89,11 @@ class ControlServer(TCPMultiConnection):
response = None
try:
+ # deny calling private methods
+ if command[0] == '_':
+ self.log.info('private methods are not callable')
+ raise KeyError()
+
command_function = self.commands.__class__.__dict__[command]
except KeyError as e: