Merge pull request #667 from midoks/dev

修复反向代理设置问题
pull/669/head
Mr Chen 5 months ago committed by GitHub
commit df3db9e632
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      web/utils/site.py

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

Loading…
Cancel
Save