Remove old debug messages

This commit is contained in:
Kevin Cotugno 2022-12-19 12:50:45 -07:00
parent 39229d32ab
commit d1e40c6fc0
2 changed files with 0 additions and 16 deletions

View File

@ -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()).

View File

@ -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 {