[pve-devel] [RFC firewall 4/8] /etc/services can also define 'sctp' services

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Mar 28 10:53:27 CEST 2018


Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
 src/PVE/Firewall.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/Firewall.pm b/src/PVE/Firewall.pm
index eb07be0..c8a430c 100644
--- a/src/PVE/Firewall.pm
+++ b/src/PVE/Firewall.pm
@@ -860,7 +860,7 @@ sub get_etc_services {
 	next if $line =~m/^#/;
 	next if ($line =~m/^\s*$/);
 
-	if ($line =~ m!^(\S+)\s+(\S+)/(tcp|udp).*$!) {
+	if ($line =~ m!^(\S+)\s+(\S+)/(tcp|udp|sctp).*$!) {
 	    $services->{byid}->{$2}->{name} = $1;
 	    $services->{byid}->{$2}->{port} = $2;
 	    $services->{byid}->{$2}->{$3} = 1;
-- 
2.11.0




More information about the pve-devel mailing list