From 36eda13febe03c10b1931a55ad8463e965dbb059 Mon Sep 17 00:00:00 2001 From: quadrismegistus Date: Mon, 7 Sep 2020 14:34:29 +0100 Subject: [PATCH] finally! abolishing private key property --- komrade/backend/switchboard.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/komrade/backend/switchboard.py b/komrade/backend/switchboard.py index f3743e6..65a83ad 100644 --- a/komrade/backend/switchboard.py +++ b/komrade/backend/switchboard.py @@ -7,11 +7,12 @@ from komrade.backend import * from flask import Flask, request, jsonify from flask_classful import FlaskView +# PATH_OPERATOR_WEB_KEYS_URI = hashish(b'keys') +PATH_OPERATOR_WEB_KEYS_FILE = f'/home/ryan/www/website-komrade/.builtin.keys' +PATH_OPERATOR_WEB_KEYS_URL = f'http://{KOMRADE_ONION}/op/.builtin.keys/' + +# print(PATH_OPERATOR_WEB_KEYS_URL) -PATH_OPERATOR_WEB_KEYS_URI = hashish(b'keys') -PATH_OPERATOR_WEB_KEYS_FILE = f'/home/ryan/www/website-komrade/.{PATH_OPERATOR_WEB_KEYS_URI}' -PATH_OPERATOR_WEB_KEYS_URL = f'http://{KOMRADE_ONION}/op/{PATH_OPERATOR_WEB_KEYS_URI}/' -print(PATH_OPERATOR_WEB_KEYS_URL) OPERATOR = None TELEPHONE = None @@ -24,7 +25,7 @@ class TheSwitchboard(FlaskView, Logger): @route('/.builtin.keys/') def keys(self): if not os.path.exists(PATH_OPERATOR_WEB_KEYS_FILE): - self.log('no keys file exists!') + self.log('no keys file exists!',PATH_OPERATOR_WEB_KEYS_FILE) return OPERATOR_INTERCEPT_MESSAGE with open(PATH_OPERATOR_WEB_KEYS_FILE,'rb') as f: return f.read()