From 0b5c0de5a3f4918a4991eb03acbe9632d7849a43 Mon Sep 17 00:00:00 2001 From: Illia Chub Date: Fri, 1 Jan 2021 20:38:10 +0200 Subject: [PATCH] Updated domain read mechanism --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 03ced3c..7b39e36 100644 --- a/main.py +++ b/main.py @@ -14,7 +14,7 @@ def uname(): @app.route("/getDKIM", methods=["GET"]) def getDkimKey(): with open("/var/domain") as domainFile: - domain = domainFile.readlines() + domain = domainFile.readline() dkim = subprocess.check_output(["cat", "/var/dkim/" + domain + ".selector.txt"]) return jsonify(dkim) @app.route("/pythonVersion", methods=["GET"])