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:
parent
a54c5f44e4
commit
ee35e71b28
1 changed files with 5 additions and 0 deletions
|
@ -32,6 +32,7 @@ bool pitrecdb;
|
||||||
bool nojs;
|
bool nojs;
|
||||||
bool nodirect;
|
bool nodirect;
|
||||||
bool noaio;
|
bool noaio;
|
||||||
|
bool no6;
|
||||||
const char *execute;
|
const char *execute;
|
||||||
lgetopt opts[] =
|
lgetopt opts[] =
|
||||||
{
|
{
|
||||||
|
@ -48,6 +49,7 @@ lgetopt opts[] =
|
||||||
{ "nojs", &nojs, lgetopt::BOOL, "Disable SpiderMonkey JS subsystem from initializing. (noop when not available)." },
|
{ "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." },
|
{ "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. " },
|
{ "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 },
|
{ nullptr, nullptr, lgetopt::STRING, nullptr },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -273,4 +275,7 @@ applyargs()
|
||||||
ircd::fs::aio::enable.set("false");
|
ircd::fs::aio::enable.set("false");
|
||||||
else
|
else
|
||||||
ircd::fs::aio::enable.set("true");
|
ircd::fs::aio::enable.set("true");
|
||||||
|
|
||||||
|
if(no6)
|
||||||
|
ircd::net::enable_ipv6.set("false");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue