mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-08-08 09:21:48 +08:00
Introduce a protobuf-generated ReloadableConfig (cfg.proto) to hold all fields that reload on SIGHUP, and separate them from static_cfg_st, which holds fields that require a server restart. Named vhosts inherit from the default vhost via a pack/unpack round-trip. Adding a new config field only requires editing cfg.proto. Struct and accessor names (ReloadableConfig, static_cfg_st, GETRCONFIG, GETSCONFIG) now reflect each field's lifetime. A new unit test covers the full inheritance path. Resolves: #705 Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>