0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-24 01:18:53 +02:00

construct: Add program option -no6 to disable ipv6 at startup.

This commit is contained in:
Jason Volk 2019-03-25 15:17:09 -07:00
parent a54c5f44e4
commit ee35e71b28

View file

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