Dispatcher
DispatcherConfig — sniffing and overrides
The dispatcher is configured in ServerConfig.dispatcher (DispatcherConfig). Schema definition: protos/proto/vx/dispatcher/dispatcher.proto.
All inbound and DNS server traffic passes through the dispatcher. The dispatcher selects an outbound via routing, then hands the traffic to that outbound for processing.
DispatcherConfig
destinationOverrideWhen non-empty, sniff connections and override the destination with the sniffed domain when the protocol matches
sniffSniff all connections to obtain additional connection metadata, which can make logs more complete
fallbackTimeoutTime to wait for response data (milliseconds). If no response data is received within this period, the connection is treated as failed and fallback begins
sessionStatsEnable session metering statistics, shown in logs
Example
{
"dispatcher": {
"sniff": true,
"destinationOverride": ["http", "tls"],
"sessionStats": false
}
}