0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-18 14:19:48 +03:00

Add sniff timeoit

This commit is contained in:
风扇滑翔翼
2025-02-21 10:44:33 +00:00
committed by GitHub
parent be43f66b63
commit 95c2113250
7 changed files with 117 additions and 83 deletions

View File

@ -5,6 +5,7 @@ import (
"context"
"math/rand"
"sync"
"time"
c "github.com/xtls/xray-core/common/ctx"
"github.com/xtls/xray-core/common/errors"
@ -80,6 +81,7 @@ type SniffingRequest struct {
Enabled bool
MetadataOnly bool
RouteOnly bool
Timeout time.Duration
}
// Content is the metadata of the connection content.