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:
Thomas Haller 2019-04-23 09:16:12 +02:00 committed by Stephen Hemminger
parent 6e982e7b9b
commit 6f87b544ca
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}