From d1e40c6fc059a7e65ae698adad891a5ba57af50d Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Mon, 19 Dec 2022 12:50:45 -0700 Subject: [PATCH] Remove old debug messages --- internal/conn.go | 13 ------------- internal/proxy.go | 3 --- 2 files changed, 16 deletions(-) diff --git a/internal/conn.go b/internal/conn.go index bc4175a..e10fe13 100644 --- a/internal/conn.go +++ b/internal/conn.go @@ -2,9 +2,7 @@ package internal import ( "errors" - "fmt" "net" - "net/netip" "sync" "sync/atomic" "time" @@ -47,17 +45,6 @@ func NewConn(p *Proxy, iface net.Interface, localIP net.IP, src *net.UDPAddr, ou return } - var a netip.AddrPort - a, err = netip.ParseAddrPort(c.socket.LocalAddr().String()) - if err != nil { - return - } - c.Dst = net.UDPAddrFromAddrPort(a) - if c.Dst.IP.String() == "0.0.0.0" { - fmt.Println(localIP) - panic(c) - } - log.Debug(). Str("src", c.Src.String()). Str("dst", c.Dst.String()). diff --git a/internal/proxy.go b/internal/proxy.go index c8e49c3..b14f274 100644 --- a/internal/proxy.go +++ b/internal/proxy.go @@ -2,7 +2,6 @@ package internal import ( "errors" - "fmt" "net" "os" "regexp" @@ -145,10 +144,8 @@ func (p Proxy) Run() { func (p *Proxy) handleInterface(group netGroup, in <-chan Message, out chan<- Message, rewrite bool) { var wg sync.WaitGroup - defer fmt.Println("done " + group.iface.Name) defer wg.Wait() defer close(out) - defer fmt.Println("closing " + group.iface.Name) conn, err := newMuticastSocket(group.iface) if err != nil {