mirror of
https://github.com/slackhq/nebula.git
synced 2025-11-22 16:34:25 +01:00
broken chkpt
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"github.com/rcrowley/go-metrics"
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/slackhq/nebula/iputil"
|
||||
"github.com/slackhq/nebula/overlay/virtqueue"
|
||||
"github.com/slackhq/nebula/routing"
|
||||
)
|
||||
|
||||
@@ -40,6 +41,10 @@ func newDisabledTun(vpnNetworks []netip.Prefix, queueLen int, metricsEnabled boo
|
||||
return tun
|
||||
}
|
||||
|
||||
func (*disabledTun) GetQueues() []*virtqueue.SplitQueue {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (*disabledTun) Activate() error {
|
||||
return nil
|
||||
}
|
||||
@@ -117,6 +122,10 @@ func (t *disabledTun) WriteMany(b [][]byte) (int, error) {
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (t *disabledTun) ReadMany(b [][]byte) (int, error) {
|
||||
return t.Read(b[0])
|
||||
}
|
||||
|
||||
func (t *disabledTun) NewMultiQueueReader() (TunDev, error) {
|
||||
return t, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user