mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-13 23:58:40 +00:00
Add sniff timeoit
This commit is contained in:
parent
be43f66b63
commit
95c2113250
7 changed files with 117 additions and 83 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue