1
0
mirror of https://passt.top/passt synced 2024-07-04 00:42:41 +00:00

conf, pasta: Create a new namespace also if probing netns options failed

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2021-10-15 17:07:16 +02:00
parent 4b12cf94f0
commit bf63832207

2
conf.c
View File

@ -1155,7 +1155,7 @@ void conf(struct ctx *c, int argc, char **argv)
usage(argv[0]);
}
if (c->mode == MODE_PASTA && !c->pasta_netns_fd)
if (c->mode == MODE_PASTA && c->pasta_netns_fd <= 0)
pasta_start_ns(c);
if (nl_sock_init(c)) {