mirror of
https://github.com/matrix-construct/construct
synced 2025-02-18 17:50:16 +01: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 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");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue