mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update cert_api.py
This commit is contained in:
@@ -57,7 +57,7 @@ def writeLog(log_str, mode="ab+"):
|
||||
|
||||
class cert_api:
|
||||
__debug = False
|
||||
__user_agent = "MW-Panel-R"
|
||||
__user_agent = "MW-Panel"
|
||||
__apis = None
|
||||
__url = None
|
||||
__replay_nonce = None
|
||||
@@ -75,6 +75,7 @@ class cert_api:
|
||||
__cfg_file = 'data/letsencrypt.json'
|
||||
|
||||
def __init__(self):
|
||||
self.__user_agent = 'MW-Panel:' + mw.getRandomString(8)
|
||||
self.__save_path = mw.getServerDir() + '/web_conf/letsencrypt'
|
||||
if not os.path.exists(self.__save_path):
|
||||
os.makedirs(self.__save_path)
|
||||
|
||||
Reference in New Issue
Block a user