v0.42h: Add static-macs option for bridged vnet setup with mac flapping

This commit is contained in:
yo
2024-11-21 18:47:55 +01:00
parent 6acea0d25b
commit 1006207fc2
2 changed files with 13 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ import (
)
const (
gVersion = "0.42g"
gVersion = "0.42h"
// TODO : Get from $jail_zpool/defaults.json
MIN_DYN_DEVFS_RULESET = 1000
@@ -52,6 +52,7 @@ var (
gNoJailLineSep bool
gNoSnapLineSep bool
gNoDSLineSep bool
gBridgeStaticMac bool
gHostVersion float64
@@ -519,6 +520,8 @@ func initConfig() {
os.Exit(1)
}
gBridgeStaticMac = viper.GetBool("static-macs")
if gDebug {
log.SetLevel(log.DebugLevel)
log.Debugf("Debug mode enabled\n")