summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 076564c..e545ce0 100644
--- a/main.go
+++ b/main.go
@@ -38,7 +38,7 @@ type Data struct {
Size int
}
-func dump(dir Direction, src, dst net.Conn, data chan Data) error {
+func dump(dir Direction, src, dst net.Conn, data chan<- Data) error {
buf := make([]byte, 4096)
for k := 1; ; k++ {
n, err := src.Read(buf)