This commit is contained in:
jxxghp
2023-08-12 08:00:47 +08:00
parent 44d428d934
commit 739a9f637a

View File

@ -238,6 +238,8 @@ class StringUtils:
"""
if not url:
return ""
if 'u2.dmhy.org' in url:
return 'u2.dmhy.org'
_, netloc = StringUtils.get_url_netloc(url)
if netloc:
return ".".join(netloc.split(".")[-2:])