diff options
| author | 2023-06-07 13:20:09 +0100 | |
|---|---|---|
| committer | 2023-06-07 13:20:09 +0100 | |
| commit | edd34ffc51c811e7d09cbae8f3d253b1f1a74450 (patch) | |
| tree | 9479095a8e1a7cae82f2fc511f1b7a32eb9b9cf6 /src/configreader.cpp | |
| parent | Only regenerate cloaks if a cloak of that type exists. (diff) | |
Fix "auto" not being a valid options for <options:defaultbind>.
This fell back to the correct value but created a spurious message
in the server log.
Diffstat (limited to 'src/configreader.cpp')
| -rw-r--r-- | src/configreader.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 4803fdb7d..12982c435 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -313,6 +313,7 @@ void ServerConfig::Fill() ServerDesc = server->getString("description", ServerName, 1); Network = server->getString("network", ServerName, 1); + // Read the <options> config. const auto& options = ConfValue("options"); DefaultModes = options->getString("defaultmodes", "not"); @@ -326,8 +327,9 @@ void ServerConfig::Fill() { "yes", ServerConfig::BUT_RESTRICT_NOTIFY }, }); WildcardIPv6 = options->getEnum("defaultbind", CanCreateIPv6Socket(), { - { "ipv4", false }, - { "ipv6", true }, + { "auto", CanCreateIPv6Socket() }, + { "ipv4", false }, + { "ipv6", true }, }); // Read the <performance> config. |
