Fix/ebpf free (#1057)

* Fix ebpf free call

* Add debug logs
This commit is contained in:
Zoltan Papp
2023-08-07 11:43:32 +02:00
committed by GitHub
parent 973316d194
commit 8eca83f3cb
4 changed files with 4 additions and 2 deletions

View File

@@ -104,6 +104,7 @@ func (p *WGEBPFProxy) CloseConn() error {
// Free resources
func (p *WGEBPFProxy) Free() error {
log.Debugf("free up ebpf wg proxy")
var err1, err2, err3 error
if p.conn != nil {
err1 = p.conn.Close()