Updated domain read mechanism

pull/2/head
Illia Chub 2021-01-01 20:38:10 +02:00
parent 7ba0c5820d
commit 0b5c0de5a3
1 changed files with 1 additions and 1 deletions

View File

@ -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"])