VXVX Docs

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

destinationOverride
string[]

When non-empty, sniff connections and override the destination with the sniffed domain when the protocol matches

sniff
bool

Sniff all connections to obtain additional connection metadata, which can make logs more complete

fallbackTimeout
uint32

Time to wait for response data (milliseconds). If no response data is received within this period, the connection is treated as failed and fallback begins

sessionStats
bool

Enable session metering statistics, shown in logs

Example

{
  "dispatcher": {
    "sniff": true,
    "destinationOverride": ["http", "tls"],
    "sessionStats": false
  }
}
  • RouterskipSniff, protocols, domain rules after sniffing
  • DNS — resolution when using resolveDomain rules

Comments