From 1588c066b9ab9dae8205ef265929c7eb43dca473 Mon Sep 17 00:00:00 2001 From: Abiola Ibrahim Date: Mon, 26 Aug 2024 08:21:43 +0100 Subject: [PATCH] config: remove ability to disable network address after enabling Signed-off-by: Abiola Ibrahim --- cmd/start.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/start.go b/cmd/start.go index 0c2d3d9f..d9b55c74 100644 --- a/cmd/start.go +++ b/cmd/start.go @@ -334,6 +334,10 @@ func setFixedConfigs(conf *config.Config) { warnIfNotEqual("volume mount type", conf.MountType, fixedConf.MountType) conf.MountType = fixedConf.MountType } + if fixedConf.Network.Address && !conf.Network.Address { + log.Warnln("network address cannot be disabled once enabled") + conf.Network.Address = true + } } func prepareConfig(cmd *cobra.Command) {