fix: Restore clang-tidy change to section name in config (#7091)

Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com>
This commit is contained in:
Bart
2026-05-07 06:34:47 -04:00
committed by GitHub
parent 8e2aa33f64
commit 8c71ec803d
3 changed files with 6 additions and 6 deletions

View File

@@ -287,7 +287,7 @@ parsePort(ParsedPort& port, Section const& section, std::ostream& log)
populate(section, "admin", log, port.admin_nets_v4, port.admin_nets_v6);
populate(
section, "secureGateway", log, port.secure_gateway_nets_v4, port.secure_gateway_nets_v6);
section, "secure_gateway", log, port.secure_gateway_nets_v4, port.secure_gateway_nets_v6);
set(port.user, "user", section);
set(port.password, "password", section);

View File

@@ -72,7 +72,7 @@ secureGateway(std::unique_ptr<Config> cfg)
{
(*cfg)[PORT_RPC].set("admin", "");
(*cfg)[PORT_WS].set("admin", "");
(*cfg)[PORT_RPC].set("secureGateway", getEnvLocalhostAddr());
(*cfg)[PORT_RPC].set("secure_gateway", getEnvLocalhostAddr());
return cfg;
}
@@ -89,8 +89,8 @@ secureGatewayLocalnet(std::unique_ptr<Config> cfg)
{
(*cfg)[PORT_RPC].set("admin", "");
(*cfg)[PORT_WS].set("admin", "");
(*cfg)[PORT_RPC].set("secureGateway", "127.0.0.0/8");
(*cfg)[PORT_WS].set("secureGateway", "127.0.0.0/8");
(*cfg)[PORT_RPC].set("secure_gateway", "127.0.0.0/8");
(*cfg)[PORT_WS].set("secure_gateway", "127.0.0.0/8");
return cfg;
}
std::unique_ptr<Config>
@@ -127,7 +127,7 @@ addGrpcConfigWithSecureGateway(std::unique_ptr<Config> cfg, std::string const& s
// Check https://man7.org/linux/man-pages/man7/ip.7.html
// "ip_local_port_range" section for using 0 ports
(*cfg)[SECTION_PORT_GRPC].set("port", "0");
(*cfg)[SECTION_PORT_GRPC].set("secureGateway", secureGateway);
(*cfg)[SECTION_PORT_GRPC].set("secure_gateway", secureGateway);
return cfg;
}

View File

@@ -361,7 +361,7 @@ GRPCServerImpl::GRPCServerImpl(Application& app)
Throw<std::runtime_error>("Error setting grpc server address");
}
auto const optSecureGateway = section.get("secureGateway");
auto const optSecureGateway = section.get("secure_gateway");
if (optSecureGateway)
{
try