cmd/quictpu/ping: disable buffer size warning

This commit is contained in:
Leopold Schabel 2022-06-19 13:25:05 +02:00
parent 074258b45c
commit cbcc45d763
1 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,11 @@ var (
func init() {
flag.Parse()
// Mute receive buffer warning (we don't even send data!)
if err := os.Setenv("QUIC_GO_DISABLE_RECEIVE_BUFFER_WARNING", "1"); err != nil {
panic(err)
}
}
func main() {