mirror of
https://github.com/daeuniverse/dae.git
synced 2025-07-09 15:30:06 +07:00
optimize: allow to bind nothing
This commit is contained in:
@ -150,7 +150,7 @@ func newControlPlane(log *logrus.Logger, bpf interface{}, conf *config.Config) (
|
||||
}
|
||||
|
||||
if len(conf.Global.LanInterface) == 0 && len(conf.Global.WanInterface) == 0 {
|
||||
return nil, fmt.Errorf("LanInterface and WanInterface cannot both be empty")
|
||||
log.Warnln("No binding interface.")
|
||||
}
|
||||
|
||||
// Deep copy a conf to avoid modification.
|
||||
|
Reference in New Issue
Block a user