iprule: avoid printing extra space after gateway for nat action
For all other actions we avoid the trailing space, so do it here as well. Signed-off-by: Thomas Haller <thaller@redhat.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
6e982e7b9b
commit
6f87b544ca
|
|
@ -443,7 +443,7 @@ int print_rule(struct nlmsghdr *n, void *arg)
|
|||
gateway = format_host_rta(frh->family, tb[RTA_GATEWAY]);
|
||||
|
||||
print_string(PRINT_ANY, "nat_gateway",
|
||||
"map-to %s ", gateway);
|
||||
"map-to %s", gateway);
|
||||
} else {
|
||||
print_null(PRINT_ANY, "masquerade", "masquerade", NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue