fix: Only show TLD on site
All checks were successful
Build Docker / Build Image (push) Successful in 30s

This commit is contained in:
Nathan Woodburn 2023-10-30 16:13:19 +11:00
parent fe0d7f050d
commit fa6153bf01
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -14,8 +14,9 @@ def send_report(path):
def index():
# Get host from request
host = request.headers.get('host')
tld = host.split('.')[-1]
return render_template('index.html', tld=host)
return render_template('index.html', tld=tld)
if __name__ == '__main__':
app.run(debug=False, port=5000, host='0.0.0.0')