Update common.py

This commit is contained in:
midoks
2023-08-05 14:43:14 +08:00
parent b578f2fddc
commit 4225d4c040
+1 -1
View File
@@ -70,7 +70,7 @@ def initDBSshPort():
"cat /etc/ssh/sshd_config | grep '^Port \d*' | tail -1")
ssh_port = cmd_data[0].replace("Port ", '').strip()
if ssh_port == '':
ssh_port = 22
ssh_port = '22'
firewall_api.firewall_api().addAcceptPortArgs(ssh_port, 'SSH远程管理服务', 'port')