From c6e1a0adba22598163e08f875c692c4c3ceae771 Mon Sep 17 00:00:00 2001 From: sbruens Date: Wed, 18 Sep 2024 10:30:05 -0400 Subject: [PATCH] Undo vpc creation. --- service/listeners.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/service/listeners.go b/service/listeners.go index bb4c147a..f94a3046 100644 --- a/service/listeners.go +++ b/service/listeners.go @@ -301,7 +301,7 @@ func (m *multiPacketListener) Acquire() (net.PacketConn, error) { } m.count++ - vpc := &virtualPacketConn{ + return &virtualPacketConn{ PacketConn: m.pc, readCh: m.readCh, closeCh: make(chan struct{}), @@ -320,9 +320,7 @@ func (m *multiPacketListener) Acquire() (net.PacketConn, error) { } return nil }, - } - - return vpc, nil + }, nil } // ListenerManager holds the state of shared listeners.