Update sync_jms.py

JumpServer V3版本同步时,默认增加sftp服务,与ssh端口一致
pull/131/head
Yvan 2024-09-06 17:43:03 +08:00 committed by GitHub
parent 6ffbd60b6d
commit 0c5e439c72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ def update_jms_ecs(jms_ver,jms_url,headers,new_node_dict,node_id,cloud,account,e
payload = {
"address": ip,
"name": iname,
"protocols": [{"name": proto,"port": port}],
"protocols": [{"name": proto,"port": port}, {"name": "sftp", "port": port}],
"platform": '5' if platform == 'Windows' else '1',
"is_active": True,
"domain": "",