From ee35e71b2877e1e3775d712c632984526c667167 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 25 Mar 2019 15:17:09 -0700 Subject: [PATCH] construct: Add program option -no6 to disable ipv6 at startup. --- construct/construct.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/construct/construct.cc b/construct/construct.cc index 736056c6d..e820fe954 100644 --- a/construct/construct.cc +++ b/construct/construct.cc @@ -32,6 +32,7 @@ bool pitrecdb; bool nojs; bool nodirect; bool noaio; +bool no6; const char *execute; lgetopt opts[] = { @@ -48,6 +49,7 @@ lgetopt opts[] = { "nojs", &nojs, lgetopt::BOOL, "Disable SpiderMonkey JS subsystem from initializing. (noop when not available)." }, { "nodirect", &nodirect, lgetopt::BOOL, "Disable direct IO (O_DIRECT) for unsupporting filesystems." }, { "noaio", &noaio, lgetopt::BOOL, "Disable the AIO interface in favor of traditional syscalls. " }, + { "no6", &no6, lgetopt::BOOL, "Disable IPv6 operations" }, { nullptr, nullptr, lgetopt::STRING, nullptr }, }; @@ -273,4 +275,7 @@ applyargs() ircd::fs::aio::enable.set("false"); else ircd::fs::aio::enable.set("true"); + + if(no6) + ircd::net::enable_ipv6.set("false"); }