From 7f010caa6e5ed6012411305652b8b64e5f5ae990 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 25 Nov 2022 16:46:25 +0800 Subject: [PATCH] Update index.py --- plugins/rsyncd/index.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/rsyncd/index.py b/plugins/rsyncd/index.py index 648e71298..5ef7381e7 100755 --- a/plugins/rsyncd/index.py +++ b/plugins/rsyncd/index.py @@ -764,12 +764,12 @@ def lsyncdAdd(): except Exception as e: return mw.returnJson(False, "接收密钥格式错误!") else: - data = checkArgs(args, ['uname']) + data = checkArgs(args, ['sname', 'password']) if not data[0]: return data[1] - info['name'] = args['uname'] - info['password'] = args['uname'] + info['name'] = args['sname'] + info['password'] = args['password'] rsync = { 'bwlimit': bwlimit,