feat: Remove HNS redirect
This commit is contained in:
9
tools.py
9
tools.py
@@ -137,14 +137,15 @@ def getHandshakeScript(host: str) -> str:
|
|||||||
Get the handshake script HTML snippet.
|
Get the handshake script HTML snippet.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
domain (str): The domain to use in the handshake script
|
host (str): The host string from the request
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
str: The handshake script HTML snippet
|
str: The handshake script HTML snippet
|
||||||
"""
|
"""
|
||||||
if isDev(host):
|
return ""
|
||||||
return ""
|
# if isDev(host):
|
||||||
return '<script src="https://nathan.woodburn/handshake.js" domain="nathan.woodburn" async></script><script src="https://nathan.woodburn/https.js" async></script>'
|
# return ""
|
||||||
|
# return '<script src="https://nathan.woodburn/handshake.js" domain="nathan.woodburn" async></script><script src="https://nathan.woodburn/https.js" async></script>'
|
||||||
|
|
||||||
|
|
||||||
@lru_cache(maxsize=64)
|
@lru_cache(maxsize=64)
|
||||||
|
|||||||
Reference in New Issue
Block a user