Add a pcap-split tool
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user