fix: should fix traffic loop sent by dae in WAN mode

This commit is contained in:
mzz2017
2023-02-21 19:10:17 +08:00
parent ea340372b8
commit 33ad434f8a
2 changed files with 54 additions and 8 deletions

View File

@ -122,6 +122,9 @@ func NewControlPlane(
BindLan: len(global.LanInterface) > 0,
BindWan: len(global.WanInterface) > 0,
}); err != nil {
if log.Level == logrus.PanicLevel {
log.Panicln(err)
}
return nil, fmt.Errorf("load eBPF objects: %w", err)
}