mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-12 07:08:41 +00:00
Add sniff timeoit
This commit is contained in:
parent
be43f66b63
commit
95c2113250
7 changed files with 117 additions and 83 deletions
|
@ -55,6 +55,7 @@ type SniffingConfig struct {
|
|||
DomainsExcluded *StringList `json:"domainsExcluded"`
|
||||
MetadataOnly bool `json:"metadataOnly"`
|
||||
RouteOnly bool `json:"routeOnly"`
|
||||
Timeout int64 `json:"timeout"`
|
||||
}
|
||||
|
||||
// Build implements Buildable.
|
||||
|
@ -92,6 +93,7 @@ func (c *SniffingConfig) Build() (*proxyman.SniffingConfig, error) {
|
|||
DomainsExcluded: d,
|
||||
MetadataOnly: c.MetadataOnly,
|
||||
RouteOnly: c.RouteOnly,
|
||||
Timeout: c.Timeout,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue