Skip to content

Commit 9ed07b4

Browse files
committed
additional security on typing page
1 parent ae702bc commit 9ed07b4

3 files changed

Lines changed: 759 additions & 738 deletions

File tree

‎serve.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def do_GET(self):
1919
# Allow address reuse so it doesn't crash on restarts
2020
socketserver.TCPServer.allow_reuse_address = True
2121

22-
with socketserver.TCPServer(("", PORT), GitHubPagesHandler) as httpd:
22+
with socketserver.TCPServer(("127.0.0.1", PORT), GitHubPagesHandler) as httpd:
2323
print(f"Custom Local Server running at http://localhost:{PORT}")
2424
print("This server perfectly mimics GitHub Pages clean URLs!")
2525
httpd.serve_forever()

0 commit comments

Comments
 (0)