Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
stegar123 committed Oct 15, 2024
1 parent 15cacea commit e4bd716
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion containers/caddy-l4/dns_register_alert.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,11 @@ def check_domain():
return jsonify({"domain": domain, "status": "allowed"}), 200
else:
client_email=find_email(domain)
client_id = find_id_by_fqdn_recursive(load_data_from_json(), client_email)
data=load_data_from_json()
print("data: ", data, type(data))
client_id = find_id_by_fqdn_recursive(data, client_email)
print("client_email: ", client_email)
print("client_idi: ", client_id)
send_mail(client_id, client_email, domain)
return jsonify({"domain": domain, "status": "not allowed"}), 404

Expand Down

0 comments on commit e4bd716

Please sign in to comment.