/** * Trojan proxy protocol configuration. * * @see https://xtls.github.io/en/config/inbounds/trojan.html * @see https://xtls.github.io/en/config/outbounds/trojan.html */ export interface TrojanInboundConfig { /** Authorized user list. */ clients?: TrojanUser[]; /** Fallback configurations. */ fallbacks?: TrojanInboundFallback[]; } export interface TrojanUser { /** User password. */ password?: string; /** User level for policy. */ level?: number; /** User email for stats and identification. */ email?: string; /** Flow control mode (e.g. "xtls-rprx-vision"). */ flow?: string; /** Remnawave Custom Field, not exist in XTLS config! */ id: string; } export interface TrojanInboundFallback { /** SNI matching (empty = default fallback). */ name?: string; /** ALPN matching. */ alpn?: string; /** HTTP path matching. */ path?: string; /** Destination type. */ type?: string; /** Fallback destination (port number, "addr:port", or Unix socket path). */ dest?: string | number; /** PROXY protocol version to send to fallback target (0 = disabled). */ xver?: number; } export interface TrojanOutboundConfig { /** Server list. */ servers?: TrojanOutboundServer[]; /** Server address (flat format). */ address?: string; /** Server port (flat format). */ port?: number; /** User level (flat format). */ level?: number; /** User email (flat format). */ email?: string; /** Password (flat format). */ password?: string; /** Flow control (flat format). */ flow?: string; } export interface TrojanOutboundServer { /** Server address. */ address?: string; /** Server port. */ port?: number; /** User level for policy. */ level?: number; /** User email for stats. */ email?: string; /** Authentication password. */ password?: string; /** Flow control mode. */ flow?: string; } //# sourceMappingURL=trojan.d.ts.map