Add routeOnly sniffing option

This commit is contained in:
世界 2021-09-16 15:05:48 +08:00
parent 6c9e57d624
commit a3023e43ef
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
8 changed files with 121 additions and 89 deletions

View file

@ -53,7 +53,8 @@ type Inbound struct {
// Outbound is the metadata of an outbound connection.
type Outbound struct {
// Target address of the outbound connection.
Target net.Destination
Target net.Destination
RouteTarget net.Destination
// Gateway address
Gateway net.Address
}
@ -64,6 +65,7 @@ type SniffingRequest struct {
OverrideDestinationForProtocol []string
Enabled bool
MetadataOnly bool
RouteOnly bool
}
// Content is the metadata of the connection content.