]> git.proxmox.com Git - pve-firewall.git/commitdiff
/etc/services can also define 'sctp' services
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 28 Mar 2018 08:53:27 +0000 (10:53 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 28 Mar 2018 09:35:06 +0000 (11:35 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Firewall.pm

index eb07be0dc11df140b7f3fceeedffb81957a0f6aa..c8a430c71ba0cc2e47f8cb70cfcd1bdbfb145079 100644 (file)
@@ -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;