projects
/
pve-firewall.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58bc569
)
parse_protocol_file: support lines without end comments
author
Wolfgang Bumiller
<w.bumiller@proxmox.com>
Wed, 28 Mar 2018 08:53:25 +0000
(10:53 +0200)
committer
Thomas 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
patch
|
blob
|
blame
|
history
diff --git
a/src/PVE/Firewall.pm
b/src/PVE/Firewall.pm
index d8f05d85b4efa64958c54965fbc2d2cca671eaae..ac4850744a83571a5aec1340ace98997e0dfb48d 100644
(file)
--- a/
src/PVE/Firewall.pm
+++ b/
src/PVE/Firewall.pm
@@
-892,7
+892,7
@@
sub parse_protocol_file {
next if $line =~m/^#/;
next if ($line =~m/^\s*$/);
- if ($line =~ m!^(\S+)\s+(\d+)
\s+.*
$!) {
+ if ($line =~ m!^(\S+)\s+(\d+)
(?:\s+.*)?
$!) {
$protocols->{byid}->{$2}->{name} = $1;
$protocols->{byname}->{$1} = $protocols->{byid}->{$2};
}