Skip to content

Commit

Permalink
config: remove ability to disable network address after enabling
Browse files Browse the repository at this point in the history
Signed-off-by: Abiola Ibrahim <[email protected]>
  • Loading branch information
abiosoft committed Aug 26, 2024
1 parent 9d0ad92 commit 1588c06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1588c06

Please sign in to comment.