Update site.py

This commit is contained in:
Mr Chen 2024-12-24 02:44:41 +08:00
parent 0d4b157b1b
commit 8c1e672da7
1 changed files with 3 additions and 2 deletions

View File

@ -1491,9 +1491,10 @@ class sites(object):
# get host from url
try:
if host == "$host":
host_tmp = urlparse(_to)
host_tmp = urlparse(to)
host = host_tmp.netloc
except:
except Exception as e:
return mw.returnData(False, "错误的目标地址")
proxy_site_path = self.getProxyDataPath(site_name)