mirror of
https://github.com/ION606/static-site-hosting.git
synced 2026-05-14 22:16:54 +00:00
bug fix
This commit is contained in:
@@ -74,7 +74,7 @@ def isDefaultRoute(hostname: str):
|
|||||||
if hostname.count(".") < 2:
|
if hostname.count(".") < 2:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
subdomain = hostname.host.split(".")[0]
|
subdomain = hostname.split(".")[0]
|
||||||
return not subdomain or subdomain in RESERVED_SUBDOMAINS
|
return not subdomain or subdomain in RESERVED_SUBDOMAINS
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user