From f4bdbf80639010017d45464a7c3b58c2ecabddf7 Mon Sep 17 00:00:00 2001 From: quadrismegistus Date: Sun, 13 Sep 2020 11:14:52 +0100 Subject: [PATCH] updates --- komrade/backend/operators.py | 5 +++++ komrade/backend/switchboard.py | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/komrade/backend/operators.py b/komrade/backend/operators.py index 625d05a..4be2bda 100644 --- a/komrade/backend/operators.py +++ b/komrade/backend/operators.py @@ -186,6 +186,11 @@ class Operator(Keymaker): # time to turn around and encrypt # @unsure? + if self != self.phone and type(self)!=Komrade: + # if client, let the request rest + return msg_obj + + # if remote operator, keep going? self.log('time to flip msg around and return to sender. v1:',msg_obj,new_data,reencrypt,msg_obj.route) new_msg_obj = msg_obj.to_whom.compose_msg_to( msg=new_data, diff --git a/komrade/backend/switchboard.py b/komrade/backend/switchboard.py index ea81c85..baac5d1 100644 --- a/komrade/backend/switchboard.py +++ b/komrade/backend/switchboard.py @@ -58,4 +58,5 @@ def run_forever(port='8080'): # print(OPERATOR,'!?',OPERATOR.keychain()) app = Flask(__name__) TheSwitchboard.register(app, route_base='/op/', route_prefix=None) - app.run(debug=False, port=port, host='0.0.0.0') \ No newline at end of file + app.run(debug=False, port=port, host='0.0.0.0') + clear_screen() \ No newline at end of file