From f24e540fe513e68ef556ee72042101c536b4ea22 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 16 Apr 2018 21:11:10 +0200 Subject: executor: don't fail if IPv6 is not enabled --- executor/common_linux.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'executor/common_linux.h') diff --git a/executor/common_linux.h b/executor/common_linux.h index 99821d535..2fa6621d8 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -1505,8 +1505,14 @@ static void checkpoint_iptables(struct ipt_table_desc* tables, int num_tables, i int fd, i; fd = socket(family, SOCK_STREAM, IPPROTO_TCP); - if (fd == -1) + if (fd == -1) { + switch (errno) { + case EAFNOSUPPORT: + case ENOPROTOOPT: + return; + } fail("socket(%d, SOCK_STREAM, IPPROTO_TCP)", family); + } for (i = 0; i < num_tables; i++) { struct ipt_table_desc* table = &tables[i]; strcpy(table->info.name, table->name); -- cgit mrf-deployment