Updated domain read mechanism

pull/2/head
Illia Chub 2021-01-01 20:42:03 +02:00
parent 0b5c0de5a3
commit 08fd54dfee
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ def uname():
def getDkimKey():
with open("/var/domain") as domainFile:
domain = domainFile.readline()
domain = domain.rstrip("\n")
dkim = subprocess.check_output(["cat", "/var/dkim/" + domain + ".selector.txt"])
return jsonify(dkim)
@app.route("/pythonVersion", methods=["GET"])