fix: Only show TLD on site
All checks were successful
Build Docker / Build Image (push) Successful in 30s
All checks were successful
Build Docker / Build Image (push) Successful in 30s
This commit is contained in:
parent
fe0d7f050d
commit
fa6153bf01
@ -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')
|
Loading…
Reference in New Issue
Block a user