diff options
Diffstat (limited to 'tun/tuntest/tuntest.go')
-rw-r--r-- | tun/tuntest/tuntest.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tun/tuntest/tuntest.go b/tun/tuntest/tuntest.go index 4e61df5..b143c76 100644 --- a/tun/tuntest/tuntest.go +++ b/tun/tuntest/tuntest.go @@ -138,10 +138,10 @@ func (t *chTun) Write(data []byte, offset int) (int, error) { const DefaultMTU = 1420 -func (t *chTun) Flush() error { return nil } -func (t *chTun) MTU() (int, error) { return DefaultMTU, nil } -func (t *chTun) Name() (string, error) { return "loopbackTun1", nil } -func (t *chTun) Events() chan tun.Event { return t.c.events } +func (t *chTun) Flush() error { return nil } +func (t *chTun) MTU() (int, error) { return DefaultMTU, nil } +func (t *chTun) Name() (string, error) { return "loopbackTun1", nil } +func (t *chTun) Events() <-chan tun.Event { return t.c.events } func (t *chTun) Close() error { t.Write(nil, -1) return nil |