diff --git a/net/tstun/wrap.go b/net/tstun/wrap.go index 658c85eff..80b129279 100644 --- a/net/tstun/wrap.go +++ b/net/tstun/wrap.go @@ -202,10 +202,9 @@ func wrap(logf logger.Logf, tdev tun.Device, isTAP bool) *Wrapper { // a goroutine should not block when setting it, even with no listeners. bufferConsumed: make(chan struct{}, 1), closed: make(chan struct{}), - // outbound can be unbuffered; the buffer is an optimization. - outbound: make(chan tunReadResult, 1), - eventsUpDown: make(chan tun.Event), - eventsOther: make(chan tun.Event), + outbound: make(chan tunReadResult), + eventsUpDown: make(chan tun.Event), + eventsOther: make(chan tun.Event), // TODO(dmytro): (highly rate-limited) hexdumps should happen on unknown packets. filterFlags: filter.LogAccepts | filter.LogDrops, }