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
f6550fad4d
commit
3fc7bd58bc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=186297
@ -4067,11 +4067,13 @@ config_nat(int ac, char **av)
|
||||
if (i)
|
||||
err(1, "setsockopt(%s)", "IP_FW_NAT_CFG");
|
||||
|
||||
if (!do_quiet) {
|
||||
/* After every modification, we show the resultant rule. */
|
||||
int _ac = 3;
|
||||
char *_av[] = {"show", "config", id};
|
||||
show_nat(_ac, _av);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
config_pipe(int ac, char **av)
|
||||
|
Loading…
Reference in New Issue
Block a user