mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Allow SSH port in TCP only
This commit is contained in:
parent
6201818028
commit
3ea781a010
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ def firewall_reload():
|
||||||
# Check if SSH port is allowed
|
# Check if SSH port is allowed
|
||||||
ssh_port = _get_ssh_port()
|
ssh_port = _get_ssh_port()
|
||||||
if ssh_port not in firewall_list()['opened_ports']:
|
if ssh_port not in firewall_list()['opened_ports']:
|
||||||
firewall_allow(ssh_port, no_reload=True)
|
firewall_allow('TCP', ssh_port, no_reload=True)
|
||||||
|
|
||||||
# Retrieve firewall rules and UPnP status
|
# Retrieve firewall rules and UPnP status
|
||||||
firewall = firewall_list(raw=True)
|
firewall = firewall_list(raw=True)
|
||||||
|
|
Loading…
Add table
Reference in a new issue