diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..24a8e87 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.png filter=lfs diff=lfs merge=lfs -text diff --git a/server.py b/server.py index b2a38f8..07aa1a5 100644 --- a/server.py +++ b/server.py @@ -15,7 +15,9 @@ def index(): # Get host from request host = request.headers.get('host') tld = host.split('.')[-1] - + tld = tld.split(':')[0] + if tld == 'localhost' or tld == '1': + tld = 'example' return render_template('index.html', tld=tld) if __name__ == '__main__': diff --git a/templates/assets/img/favicon.png b/templates/assets/img/favicon.png index d8400e4..a0d9d09 100644 Binary files a/templates/assets/img/favicon.png and b/templates/assets/img/favicon.png differ