optimize: allow to bind nothing

This commit is contained in:
mzz2017
2023-02-27 14:57:00 +08:00
parent 2d8ce4a096
commit a9709d2a57
3 changed files with 1 additions and 5 deletions

View File

@ -131,8 +131,6 @@ func NewControlPlane(
if err = fullLoadBpfObjects(log, bpf, &loadBpfOptions{
PinPath: pinPath,
CollectionOptions: collectionOpts,
BindLan: len(global.LanInterface) > 0,
BindWan: len(global.WanInterface) > 0,
}); err != nil {
if log.Level == logrus.PanicLevel {
log.Panicln(err)