summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 161b5e4..dc153f7 100644
--- a/main.go
+++ b/main.go
@@ -32,7 +32,7 @@ type Data struct {
}
func dump(dir Direction, src, dst net.Conn, data chan<- Data) error {
- buf := make([]byte, 1452)
+ buf := make([]byte, 4096)
for k := 1; ; k++ {
n, err := src.Read(buf)
if err != nil {
@@ -66,7 +66,7 @@ func main() {
}
defer cnt.Close()
- data := make(chan Data)
+ data := make(chan Data, 1)
wg.Add(2)
go func() {