mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update site.py
This commit is contained in:
+5
-1
@@ -1472,7 +1472,11 @@ location ^~ {from} {\n\
|
||||
proxy_txt = "{}/{}/{}.conf.txt".format(self.proxyPath, site_name, proxy_id)
|
||||
if os.path.exists(proxy_conf):
|
||||
mw.execShell('mv ' + proxy_txt + ' ' + proxy_conf)
|
||||
self.close_proxy = []
|
||||
|
||||
|
||||
if len(self.close_proxy) > 0:
|
||||
mw.restartWeb()
|
||||
self.close_proxy = []
|
||||
return True
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user