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:
@ -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.
|
||||
|
Reference in New Issue
Block a user