Add a pcap-split tool

This commit is contained in:
2026-10-05 20:16:01 +02:00
parent 5b5cf211d0
commit c11c893845
13 changed files with 769 additions and 22 deletions
+2 -1
View File
@@ -12,9 +12,10 @@ import (
func main() {
addr := flag.String("addr", "localhost:8080", "listen address")
maxUploadMB := flag.Int64("max-upload-mb", 1024, "largest accepted file upload in MB")
flag.Parse()
srv, err := web.New()
srv, err := web.New(web.Config{MaxUploadBytes: *maxUploadMB * 1_000_000})
if err != nil {
log.Fatal(err)
}