projects
/
project
/
firewall3.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Increase compatibility to old firewall by initializing protocol of rules and redirect...
[project/firewall3.git]
/
redirects.c
diff --git
a/redirects.c
b/redirects.c
index
4e4f5b2
..
7817e9b
100644
(file)
--- a/
redirects.c
+++ b/
redirects.c
@@
-237,6
+237,12
@@
fw3_load_redirects(struct fw3_state *state, struct uci_package *p)
}
}
+ if (list_empty(&redir->proto))
+ {
+ warn_elem(e, "does not specify a protocol, assuming TCP+UDP");
+ fw3_parse_protocol(&redir->proto, "tcpudp", true);
+ }
+
if (!valid)
{
fw3_free_redirect(redir);