diff --git a/flags/flags.go b/flags/flags.go index 236d72a..4f6606d 100644 --- a/flags/flags.go +++ b/flags/flags.go @@ -1,14 +1,12 @@ package flags import ( - "errors" "fmt" goflags "github.com/jessevdk/go-flags" "os" ) var PrintedHelpErr = goflags.ErrHelp -var NotEnoughArgs = errors.New("not enough arguments") type Options struct { Foreground bool `short:"f" long:"foreground" description:"Run in the foreground"` diff --git a/udp/listener.go b/udp/listener.go index cf3e04f..0a1e661 100644 --- a/udp/listener.go +++ b/udp/listener.go @@ -38,11 +38,6 @@ func NewListener(ctx context.Context, p *proxy.Proxy, local string, v func() pro return err } - err = pconn.SetWriteBuffer(0) - if err != nil { - panic(err) - } - receivedConnections := make(map[ComparableUdpAddress]*Flow) go func() {