From 26f4d0b37b51a3c3af35f5b82701b9887c9582aa Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 16 Nov 2022 00:40:08 +0800 Subject: [PATCH] Update cert_api.py --- class/core/cert_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/class/core/cert_api.py b/class/core/cert_api.py index bb96ec027..e996adc74 100644 --- a/class/core/cert_api.py +++ b/class/core/cert_api.py @@ -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)