From 8575e1db9fac63ba98038e8bfdbcfb55194b197c Mon Sep 17 00:00:00 2001 From: Omar Kallel Date: Fri, 8 May 2020 10:41:34 +0100 Subject: [PATCH] Set PortMapping disabled as default status --- dmtree/tr181/nat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dmtree/tr181/nat.c b/dmtree/tr181/nat.c index fef25d75..4d14ef6d 100644 --- a/dmtree/tr181/nat.c +++ b/dmtree/tr181/nat.c @@ -85,6 +85,7 @@ static int add_NAT_PortMapping(char *refparam, struct dmctx *ctx, void *data, ch dmuci_set_value_by_section(s, "src", "wan"); dmuci_set_value_by_section(s, "target", "DNAT"); dmuci_set_value_by_section(s, "dest", "lan"); + dmuci_set_value_by_section(s, "enabled", "0"); dmuci_add_section_bbfdm("dmmap_firewall", "redirect", &dmmap_firewall, &v); dmuci_set_value_by_section(dmmap_firewall, "section_name", section_name(s));