summaryrefslogtreecommitdiffstats
path: root/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'init.c')
-rw-r--r--init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/init.c b/init.c
index e9cb089..ee479cf 100644
--- a/init.c
+++ b/init.c
@@ -3095,11 +3095,11 @@ init_instance (struct context *c, const struct env_set *env, const unsigned int
/* link_socket_mode allows CM_CHILD_TCP
instances to inherit acceptable fds
from a top-level parent */
+ if (c->options.ce.proto == PROTO_TCPv4_SERVER
#ifdef USE_PF_INET6
- if (c->options.ce.proto == PROTO_TCPv4_SERVER || c->options.ce.proto == PROTO_TCPv6_SERVER)
-#else
- if (c->options.ce.proto == PROTO_TCPv4_SERVER)
+ || c->options.ce.proto == PROTO_TCPv6_SERVER
#endif
+ )
{
if (c->mode == CM_TOP)
link_socket_mode = LS_MODE_TCP_LISTEN;