Honor the quiet (-q) option while adding a nat rule.
Submitted by: Andrey V. Elsukov<bu7cher@yandex.ru> MFC after: 3 days
This commit is contained in:
parent
3b6abee3bb
commit
9102cbe344
@ -4067,10 +4067,12 @@ config_nat(int ac, char **av)
|
|||||||
if (i)
|
if (i)
|
||||||
err(1, "setsockopt(%s)", "IP_FW_NAT_CFG");
|
err(1, "setsockopt(%s)", "IP_FW_NAT_CFG");
|
||||||
|
|
||||||
/* After every modification, we show the resultant rule. */
|
if (!do_quiet) {
|
||||||
int _ac = 3;
|
/* After every modification, we show the resultant rule. */
|
||||||
char *_av[] = {"show", "config", id};
|
int _ac = 3;
|
||||||
show_nat(_ac, _av);
|
char *_av[] = {"show", "config", id};
|
||||||
|
show_nat(_ac, _av);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user