Skip to content

Commit

Permalink
Undo vpc creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbruens committed Sep 18, 2024
1 parent 0354b47 commit c6e1a0a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions service/listeners.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}),
Expand All @@ -320,9 +320,7 @@ func (m *multiPacketListener) Acquire() (net.PacketConn, error) {
}
return nil
},
}

return vpc, nil
}, nil
}

// ListenerManager holds the state of shared listeners.
Expand Down

0 comments on commit c6e1a0a

Please sign in to comment.